mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Fix flakey test for notification status
This was creating data in the Notifications table but the funcetion under test was - now the timestamps are in the past - looking in the NotificationHistory table. Freezing the time of the test fixes that.
This commit is contained in:
@@ -611,6 +611,7 @@ def test_get_total_notifications_for_date_range(sample_service):
|
||||
assert results[0] == ("2021-03-01", 15, 20, 3)
|
||||
|
||||
|
||||
@freeze_time('2022-03-31T18:00:00')
|
||||
@pytest.mark.parametrize('created_at_utc,process_day,expected_count', [
|
||||
# Clocks change on the 27th of March 2022, so the query needs to look at the
|
||||
# time range 00:00 - 23:00 (UTC) thereafter.
|
||||
|
||||
Reference in New Issue
Block a user