mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-08 02:18:34 -04:00
A new platform admin page Email complaints has been added to surface those complaints. Eventually the complaints will be visible to the services so they can remove the email address from their mailing list. Next thing to implement is "x email complaints" warning on the platform admin summary page.
11 lines
278 B
Python
11 lines
278 B
Python
from app import ComplaintApiClient
|
|
|
|
|
|
def test_get_all_complaints(mocker):
|
|
client = ComplaintApiClient()
|
|
|
|
mock = mocker.patch('app.notify_client.complaint_api_client.ComplaintApiClient.get')
|
|
|
|
client.get_all_complaints()
|
|
mock.assert_called_once_with('/complaint')
|