mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
add test
This commit is contained in:
@@ -1125,3 +1125,17 @@ def test_complete_login_after_webauthn_authentication_attempt_raises_400_if_sche
|
|||||||
_data={"successful": "True"},
|
_data={"successful": "True"},
|
||||||
_expected_status=400,
|
_expected_status=400,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def test_report_all_users(admin_request, mocker):
|
||||||
|
mocker.patch(
|
||||||
|
"app.user.rest.dao_report_users",
|
||||||
|
return_value=[("name", "email", "phone", "service")],
|
||||||
|
)
|
||||||
|
response = admin_request.get(
|
||||||
|
"user.report_all_users",
|
||||||
|
_expected_status=200,
|
||||||
|
)
|
||||||
|
assert response == {
|
||||||
|
"data": '[{"name": "name", "email_address": "email", "mobile_number": "phone", "service": "service"}]'
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user