Skip to content

Commit 7ae9ed2

Browse files
Abhishek Kumarclaude
andcommitted
Fix NameError in test: remove undefined rest_mock reference
auth_header() makes no HTTP requests, so checking request_history against an unattached mock was both incorrect and unreachable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f90be0c commit 7ae9ed2

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

tests/catalog/test_rest_auth.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,3 @@ def test_legacy_oauth2_auth_header_returns_bearer_token_when_set() -> None:
269269
session = requests.Session()
270270
auth_manager = LegacyOAuth2AuthManager(session=session, credential=None, initial_token="my-token")
271271
assert auth_manager.auth_header() == "Bearer my-token"
272-
273-
# Verify no requests were made with a blank/missing auth header
274-
history = rest_mock.request_history
275-
assert len(history) == 0

0 commit comments

Comments
 (0)