Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Nov 15, 2024
1 parent 2b69d97 commit 111db6f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/external/api/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
AzureCliCredential,
DeviceCodeCredential,
)

from click.exceptions import Exit

from data_safe_haven.directories import config_dir
from data_safe_haven.external.api.credentials import (
AzureSdkCredential,
Expand Down Expand Up @@ -36,9 +36,7 @@ def test_confirm_credentials_interactive_fail(
):
DeferredCredential.cache_ = set()
credential = AzureSdkCredential(skip_confirmation=False)
with pytest.raises(
Exit
):
with pytest.raises(Exit):
credential.get_credential()

def test_confirm_credentials_interactive_cache(
Expand All @@ -60,9 +58,7 @@ def test_decode_token_error(
self, mock_azureclicredential_get_token_invalid # noqa: ARG002
):
credential = AzureSdkCredential(skip_confirmation=True)
with pytest.raises(
Exit
):
with pytest.raises(Exit):
credential.decode_token(credential.token)


Expand Down

0 comments on commit 111db6f

Please sign in to comment.