mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-19 00:51:54 -05:00
Fix test that fails after 5:30pm
Was failing when ran after 5:30pm as this would cause the letters to be in a different subfolder (for one day later). Solved by freezetiming it Example build that failed: https://cd.gds-reliability.engineering/builds/1876957
This commit is contained in:
@@ -236,6 +236,7 @@ def test_delete_notifications_deletes_letters_not_sent_and_in_final_state_from_t
|
||||
mock_get_s3.assert_not_called()
|
||||
|
||||
|
||||
@freeze_time('2020-12-24 04:30')
|
||||
@pytest.mark.parametrize('notification_status', ['delivered', 'returned-letter', 'technical-failure'])
|
||||
def test_delete_notifications_deletes_letters_sent_and_in_final_state_from_table_and_s3(
|
||||
sample_service, mocker, notification_status
|
||||
|
||||
Reference in New Issue
Block a user