From 7ef56123081e8aa8c097c6357f6a3edfb11de7c7 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 1 Jul 2025 10:27:44 -0700 Subject: [PATCH] more tests --- tests/app/user/test_rest.py | 2 +- tests/notifications-python-client/test_base.py | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/app/user/test_rest.py b/tests/app/user/test_rest.py index 10865713f..4ecd373c8 100644 --- a/tests/app/user/test_rest.py +++ b/tests/app/user/test_rest.py @@ -1077,7 +1077,7 @@ def test_get_user_login_gov_user(notify_db_session, admin_request): ) print(hilite(users["data"])) - assert users["data"][0]["email_address"] == "findel.mestro@foo.com" + assert users["data"]["email_address"] == "findel.mestro@foo.com" def test_find_users_by_email_handles_no_results(notify_db_session, admin_request): diff --git a/tests/notifications-python-client/test_base.py b/tests/notifications-python-client/test_base.py index acecb2d03..441439a86 100644 --- a/tests/notifications-python-client/test_base.py +++ b/tests/notifications-python-client/test_base.py @@ -73,11 +73,3 @@ def test_request_raises_http_error(mock_request, mock_jwt, client): mock_request.side_effect = mock_exception with pytest.raises(HTTPError): client.get("/fail") - - -def main(): - test_request_raises_http_error() - - -if __name__ == "__main__": - main()