From 4cd4f395ea75f710306206aaa00055ecb308961e Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Mon, 7 Sep 2026 21:51:54 -0700 Subject: [PATCH] test: isolate missing first-party import guard fixture --- tests/hermes_cli/test_update_import_guard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hermes_cli/test_update_import_guard.py b/tests/hermes_cli/test_update_import_guard.py index 5318892be6..0eeb636711 100644 --- a/tests/hermes_cli/test_update_import_guard.py +++ b/tests/hermes_cli/test_update_import_guard.py @@ -329,6 +329,8 @@ def test_import_guard_ignores_missing_third_party_dependency(monkeypatch, tmp_pa def test_import_guard_flags_missing_first_party_module(monkeypatch, tmp_path): """A missing *first-party* module IS skew — the update dropped a file.""" + (tmp_path / "tools").mkdir() + (tmp_path / "tools" / "__init__.py").write_text("") (tmp_path / "consumer.py").write_text("import tools.nonexistent_module\n") monkeypatch.setattr(update_cmd, "_UPDATE_CRITICAL_MODULES", ("consumer",)) monkeypatch.setattr(update_cmd_deps, "_UPDATE_CRITICAL_MODULES", ("consumer",))