mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-08 13:12:08 +00:00
test: drop worktree-path sanity guard that fails in CI
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.
This commit is contained in:
parent
444dc0da89
commit
182256206a
1 changed files with 0 additions and 9 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue