8000 tests: Add explanation to oidc failure · jku/sigstore-python@96fc3b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 96fc3b6

Browse files
committed
tests: Add explanation to oidc failure
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent 51f54ed commit 96fc3b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/internal/oidc/test_issuer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_init_url():
3030

3131
@pytest.mark.online
3232
def test_get_identity_token_bad_code(monkeypatch):
33+
# Send token request to oauth2.sigstage.dev but provide a bogus authorization code
3334
monkeypatch.setattr("builtins.input", lambda _: "hunter2")
34-
3535
with pytest.raises(IdentityError, match=r"^Token request failed with .+$"):
3636
Issuer("https://oauth2.sigstage.dev/auth").identity_token(force_oob=True)

0 commit comments

Comments
 (0)
0