mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -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()
|
||||
|
||||
|
||||
@freeze_time('2019-09-01 04:30')
|
||||
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")
|
||||
eight_days_ago = datetime.utcnow() - timedelta(days=8)
|
||||
|
||||
Reference in New Issue
Block a user