Skip to content

Commit

Permalink
Appease the linter
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
shenanigansd authored Oct 7, 2023
1 parent 0db2b3f commit 5bb6c13
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_client.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"""Testing the client."""

from darbia.sns import SandSServices
import pytest
from darbia.sns import SandSServices


def test_rejects_invalid_auth() -> None:
"""Test that the client will recognize invalid auth."""
with pytest.raises(TypeError) as excinfo:
SandSServices(base_url="",account_number="",token="")
assert "Account number" in str(excinfo.value)
SandSServices(base_url="", account_number="", token="")
assert "Account number" in str(excinfo.value)
with pytest.raises(TypeError) as excinfo:
SandSServices(base_url="",account_number="2",token="")
assert "Token" in str(excinfo.value)
SandSServices(base_url="", account_number="2", token="")
assert "Token" in str(excinfo.value)

0 comments on commit 5bb6c13

Please sign in to comment.