mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
update time handling for more tests
This commit is contained in:
@@ -175,7 +175,7 @@ def _stats(requested, delivered, failed):
|
||||
]
|
||||
)
|
||||
])
|
||||
@freeze_time('2018-05-31 23:59:59')
|
||||
@freeze_time('2018-06-01 04:59:59')
|
||||
def test_create_empty_monthly_notification_status_stats_dict(year, expected_years):
|
||||
output = create_empty_monthly_notification_status_stats_dict(year)
|
||||
assert sorted(output.keys()) == expected_years
|
||||
@@ -183,7 +183,7 @@ def test_create_empty_monthly_notification_status_stats_dict(year, expected_year
|
||||
assert v == {'sms': {}, 'email': {}, 'letter': {}}
|
||||
|
||||
|
||||
@freeze_time('2018-05-31 23:59:59')
|
||||
@freeze_time('2018-06-01 04:59:59')
|
||||
def test_add_monthly_notification_status_stats():
|
||||
row_data = [
|
||||
{'month': datetime(2018, 4, 1), 'notification_type': 'sms', 'notification_status': 'sending', 'count': 1},
|
||||
|
||||
Reference in New Issue
Block a user