[loop-cycle-5] fix: get_token() priority order — config before repo-root fallback #899
Reference in New Issue
Block a user
Delete Branch "fix/test-failures-on-main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Fixes 2 test failures on main in
test_health_snapshot.py.Root cause
get_token()checked.timmy_gitea_tokenin repo root BEFORE the config-providedtoken_file. On any dev machine with the real token file present, tests that pass a dummy config path got the real token instead.Fix
get_token()priority:config["token"]>config["token_file"]>.timmy_gitea_tokenPath.existsmonkeypatch intest_returns_none_when_no_tokento isolate from repo-root state2883 passed, 0 failed after fix.