Updated a couple more dependencies and fix flake8 warnings

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2023-10-30 16:16:49 -04:00
parent 5e206ab10b
commit 8c825a43bd
5 changed files with 28 additions and 25 deletions

View File

@@ -76,7 +76,7 @@ def test_should_raise_non_400_statuses_as_exceptions(document_download):
document_download.upload_document("service-id", "abababab")
assert (
type(excinfo.value) == Exception
isinstance(excinfo.value) == Exception
) # make sure it's a base exception, so will be handled as a 500 by v2 api
assert (
str(excinfo.value)
@@ -98,6 +98,6 @@ def test_should_raise_exceptions_without_http_response_bodies_as_exceptions(
document_download.upload_document("service-id", "abababab")
assert (
type(excinfo.value) == Exception
isinstance(excinfo.value) == Exception
) # make sure it's a base exception, so will be handled as a 500 by v2 api
assert str(excinfo.value) == "Unhandled document download error: ConnectTimeout()"

View File

@@ -403,7 +403,7 @@ def test_notification_get_created_by_email_address(sample_notification, sample_u
def test_notification_history_from_original(sample_notification):
history = NotificationHistory.from_original(sample_notification)
assert type(history) == NotificationHistory
assert isinstance(history) == NotificationHistory
def test_rate_str():