monkeypatch_plugin_registry_megacomplex

glotaran.testing.plugin_system.monkeypatch_plugin_registry_megacomplex(test_megacomplex: MutableMapping[str, type[Megacomplex]] | None = None, create_new_registry: bool = False) Generator[None, None, None][source]

Monkeypatch the Megacomplex registry.

Parameters:
  • test_megacomplex (MutableMapping[str, type[Megacomplex]], optional) – Registry to to update or replace the Megacomplex registry with. , by default None

  • create_new_registry (bool) – Whether to update the actual registry or create a new one from test_megacomplex , by default False

Yields:

Generator[None, None, None] – Just to keep the context alive.