monkeypatch_plugin_registry_data_io
- glotaran.testing.plugin_system.monkeypatch_plugin_registry_data_io(test_data_io: MutableMapping[str, DataIoInterface] | None = None, create_new_registry: bool = False) Generator[None, None, None] [source]
Monkeypatch the
DataIoInterface
registry.- Parameters:
test_data_io (MutableMapping[str, DataIoInterface], optional) – Registry to to update or replace the
DataIoInterface
registry with. , by default Nonecreate_new_registry (bool) – Whether to update the actual registry or create a new one from
test_data_io
, by default False
- Yields:
Generator[None, None, None] – Just to keep the context alive.