mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-22 08:58:46 -04:00
make test folder structure align with app folder structure
This commit is contained in:
15
tests/app/notify_client/test_user_client.py
Normal file
15
tests/app/notify_client/test_user_client.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from app.notify_client.user_api_client import UserApiClient
|
||||
|
||||
|
||||
def test_client_uses_correct_find_by_email(mocker, api_user_active):
|
||||
|
||||
expected_url = '/user/email'
|
||||
expected_params = {'email': api_user_active.email_address}
|
||||
|
||||
client = UserApiClient()
|
||||
client.max_failed_login_count = 1 # doesn't matter for this test
|
||||
mock_get = mocker.patch('app.notify_client.user_api_client.UserApiClient.get')
|
||||
|
||||
client.get_user_by_email(api_user_active.email_address)
|
||||
|
||||
mock_get.assert_called_once_with(expected_url, params=expected_params)
|
||||
Reference in New Issue
Block a user