mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-06 00:48:46 -04:00
Add additional params to get notifications client
We want to show a log of notifications that have been sent from the API. The admin app uses its own private `/service/…/notifications` endpoint for listing activity. This commit allows us to pass through two optional, additional parameters to tell the API to: - include or not include notifications created from a job - include or not include notifications created with a test API key
This commit is contained in:
@@ -25,6 +25,14 @@ def test_client_gets_notifications_with_page(mocker):
|
||||
{'page': 99},
|
||||
{'url': '/service/abcd1234/notifications', 'params': {'page': 99}}
|
||||
),
|
||||
(
|
||||
{'include_jobs': False},
|
||||
{'url': '/service/abcd1234/notifications', 'params': {'include_jobs': False}}
|
||||
),
|
||||
(
|
||||
{'include_from_test_key': True},
|
||||
{'url': '/service/abcd1234/notifications', 'params': {'include_from_test_key': True}}
|
||||
),
|
||||
(
|
||||
{'job_id': 'efgh5678'},
|
||||
{'url': '/service/abcd1234/job/efgh5678/notifications', 'params': {}}
|
||||
|
||||
Reference in New Issue
Block a user