mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-25 00:33:41 -04:00
more tests
This commit is contained in:
@@ -1066,6 +1066,19 @@ def test_find_users_by_email_finds_user_by_full_email(notify_db_session, admin_r
|
|||||||
assert users["data"][0]["email_address"] == "findel.mestro@foo.com"
|
assert users["data"][0]["email_address"] == "findel.mestro@foo.com"
|
||||||
|
|
||||||
|
|
||||||
|
def test_get_user_login_gov_user(notify_db_session, admin_request):
|
||||||
|
create_user(email="findel.mestro@foo.com")
|
||||||
|
data = {"email": "findel.mestro@foo.com", "uuid": "123456"}
|
||||||
|
|
||||||
|
users = admin_request.post(
|
||||||
|
"user.get_login_gov_user",
|
||||||
|
_data=data,
|
||||||
|
)
|
||||||
|
|
||||||
|
assert len(users["data"]) == 1
|
||||||
|
assert users["data"][0]["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):
|
||||||
create_user(email="findel.mestro@foo.com")
|
create_user(email="findel.mestro@foo.com")
|
||||||
create_user(email="me.ignorra@foo.com")
|
create_user(email="me.ignorra@foo.com")
|
||||||
|
|||||||
Reference in New Issue
Block a user