mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-26 17:23:50 -04:00
add a test in service rest
This commit is contained in:
@@ -1975,9 +1975,12 @@ def test_get_monthly_notification_stats_by_user(
|
|||||||
|
|
||||||
response = client.get(
|
response = client.get(
|
||||||
path=(f"/service/{sample_service.id}/notifications/{sample_user.id}/monthly"),
|
path=(f"/service/{sample_service.id}/notifications/{sample_user.id}/monthly"),
|
||||||
|
year=2024,
|
||||||
headers=[auth_header],
|
headers=[auth_header],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
resp = json.loads(response.get_data(as_text=True))
|
||||||
|
print(f"RESP is {resp}")
|
||||||
# TODO This test could be a little more complete
|
# TODO This test could be a little more complete
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user