mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
fix failing test
it failed after 5:30pm. pin the time to 4am, when the task actually runs
This commit is contained in:
@@ -132,6 +132,7 @@ def test_delete_notifications_for_days_of_retention(sample_service, notification
|
|||||||
mock_get_s3.assert_not_called()
|
mock_get_s3.assert_not_called()
|
||||||
|
|
||||||
|
|
||||||
|
@freeze_time('2019-09-01 04:30')
|
||||||
def test_delete_notifications_deletes_letters_from_s3(sample_letter_template, mocker):
|
def test_delete_notifications_deletes_letters_from_s3(sample_letter_template, mocker):
|
||||||
mock_get_s3 = mocker.patch("app.dao.notifications_dao.get_s3_bucket_objects")
|
mock_get_s3 = mocker.patch("app.dao.notifications_dao.get_s3_bucket_objects")
|
||||||
eight_days_ago = datetime.utcnow() - timedelta(days=8)
|
eight_days_ago = datetime.utcnow() - timedelta(days=8)
|
||||||
|
|||||||
Reference in New Issue
Block a user