Skip to content

Commit

Permalink
Add test for None description
Browse files Browse the repository at this point in the history
  • Loading branch information
setla committed Jan 31, 2024
1 parent 7236ad1 commit 5cdbab7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_client_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ def test_str_no_description(self) -> None:
err = client.InvalidURL(url=":wrong:url:")
assert str(err) == ":wrong:url:"

def test_none_description(self) -> None:
err = client.InvalidURL(":wrong:url:")
assert err.description is None

def test_str_with_description(self) -> None:
err = client.InvalidURL(url=":wrong:url:", description=":description:")
assert str(err) == ":wrong:url: - :description:"

0 comments on commit 5cdbab7

Please sign in to comment.