diff --git a/tests/test_client_exceptions.py b/tests/test_client_exceptions.py index 3fbc7b03776..554a7c44a56 100644 --- a/tests/test_client_exceptions.py +++ b/tests/test_client_exceptions.py @@ -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:"