mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
This is what I meant to test
This commit is contained in:
@@ -49,10 +49,8 @@ def test_suspending_service_revokes_api_keys(client, sample_service, sample_api_
|
|||||||
|
|
||||||
def test_resume_service_leaves_api_keys_revokes(client, sample_service, sample_api_key):
|
def test_resume_service_leaves_api_keys_revokes(client, sample_service, sample_api_key):
|
||||||
with freeze_time('2001-10-22T11:59:00'):
|
with freeze_time('2001-10-22T11:59:00'):
|
||||||
sample_api_key.expiry_date = datetime.utcnow()
|
|
||||||
sample_service.active = False
|
|
||||||
auth_header = create_authorization_header()
|
auth_header = create_authorization_header()
|
||||||
client.post("/service/{}/resume".format(sample_service.id),
|
client.post("/service/{}/suspend".format(sample_service.id),
|
||||||
headers=[auth_header])
|
headers=[auth_header])
|
||||||
with freeze_time('2001-10-22T13:59:00'):
|
with freeze_time('2001-10-22T13:59:00'):
|
||||||
auth_header = create_authorization_header()
|
auth_header = create_authorization_header()
|
||||||
|
|||||||
Reference in New Issue
Block a user