monkeypatch_plugin_registry_project_io
- glotaran.testing.plugin_system.monkeypatch_plugin_registry_project_io(test_project_io: MutableMapping[str, ProjectIoInterface] | None = None, create_new_registry: bool = False) Generator[None, None, None] [source]
Monkeypatch the
ProjectIoInterface
registry.- Parameters:
test_project_io (MutableMapping[str, ProjectIoInterface], optional) – Registry to to update or replace the
ProjectIoInterface
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.