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][source]
Monkeypatch the
DataIoInterfaceregistry.- Parameters:
test_data_io (MutableMapping[str, DataIoInterface], optional) – Registry to to update or replace the
DataIoInterfaceregistry 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.