From 182256206a43ecad1cde17fb02470ce72f767133 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 7 Jul 2026 15:48:21 +1000 Subject: [PATCH] test: drop worktree-path sanity guard that fails in CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test_module_resolves_to_this_worktree guard asserted auth.__file__ contained 'worktrees/bootstrap-h2-logging' — a local dev crutch to defeat the editable- install trap (venv points at the main checkout). In CI the code lives at /home/runner/work/... so the assertion always fails. It never belonged in the committed suite; the 5 behavioural tests are what matter. --- tests/hermes_cli/test_quarantine_forensic_logging.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/hermes_cli/test_quarantine_forensic_logging.py b/tests/hermes_cli/test_quarantine_forensic_logging.py index c044c622d18..4ac48123195 100644 --- a/tests/hermes_cli/test_quarantine_forensic_logging.py +++ b/tests/hermes_cli/test_quarantine_forensic_logging.py @@ -13,18 +13,9 @@ load-bearing assertion — that the raw refresh token never appears in that outp import hashlib import logging -import hermes_cli.auth as auth from hermes_cli.auth import AuthError, _quarantine_nous_oauth_state -# Sanity guard: make sure we are exercising THIS worktree's module and not the -# editable-installed main checkout that shares the venv. -def test_module_resolves_to_this_worktree(): - assert "worktrees/bootstrap-h2-logging" in auth.__file__, ( - f"auth module resolved to unexpected path: {auth.__file__}" - ) - - # A distinctive, obviously-fake refresh token so the redaction assertion is # unambiguous if it ever leaks. _FAKE_RT = "nous_rt_LEAK_CANARY_do_not_log_raw_0123456789abcdef"