Skip to content

Commit b78e0b6

Browse files
test: assert SA key file path is forwarded in GCP detector
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 946170b commit b78e0b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cloudsmith_cli/core/tests/test_gcp_detector.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def test_returns_token_from_key_file(self):
122122
get.side_effect = requests.exceptions.ConnectionError()
123123
token = make_detector().get_token()
124124
assert token == "sa-jwt"
125-
_, kwargs = from_file.call_args
125+
args, kwargs = from_file.call_args
126+
assert args[0] == "/tmp/key.json"
126127
assert kwargs["target_audience"] == "cloudsmith"
127128
fake_creds.refresh.assert_called_once()
128129

0 commit comments

Comments
 (0)