Port Orca 50 command and input managers

This commit is contained in:
2026-04-11 02:10:33 -04:00
parent 12165f4e38
commit 2bfb7c7ee7
10 changed files with 8950 additions and 1495 deletions
+10
View File
@@ -73,6 +73,7 @@ from cthulhu_test_fixtures import test_context # noqa: E402,F401
def clean_all_cthulhu_modules() -> None:
cthulhu_package = sys.modules.get("cthulhu")
modules_to_remove = [
module_name
for module_name in sys.modules
@@ -81,6 +82,15 @@ def clean_all_cthulhu_modules() -> None:
]
for module_name in modules_to_remove:
sys.modules.pop(module_name, None)
if cthulhu_package is not None:
attr_name = module_name.rsplit(".", 1)[-1]
if hasattr(cthulhu_package, attr_name):
delattr(cthulhu_package, attr_name)
if cthulhu_package is not None:
for attr_name in list(vars(cthulhu_package)):
if attr_name.startswith("_") or attr_name in {"cthulhu_i18n", "cthulhu_platform"}:
continue
delattr(cthulhu_package, attr_name)
def pytest_configure(config: pytest.Config) -> None: