mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-06 12:08:25 -04:00
more tests
This commit is contained in:
@@ -1077,7 +1077,7 @@ def test_get_user_login_gov_user(notify_db_session, admin_request):
|
|||||||
)
|
)
|
||||||
|
|
||||||
print(hilite(users["data"]))
|
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):
|
def test_find_users_by_email_handles_no_results(notify_db_session, admin_request):
|
||||||
|
|||||||
@@ -73,11 +73,3 @@ def test_request_raises_http_error(mock_request, mock_jwt, client):
|
|||||||
mock_request.side_effect = mock_exception
|
mock_request.side_effect = mock_exception
|
||||||
with pytest.raises(HTTPError):
|
with pytest.raises(HTTPError):
|
||||||
client.get("/fail")
|
client.get("/fail")
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
test_request_raises_http_error()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
|
|||||||
Reference in New Issue
Block a user