mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Update now to utcnow. All tests passing.
This commit is contained in:
@@ -19,7 +19,7 @@ def test_get_delivery_status_all_ok(notify_api, notify_db):
|
||||
|
||||
def test_get_delivery_status_with_undelivered_notification(notify_api, notify_db, sample_notification):
|
||||
|
||||
more_than_five_mins_ago = datetime.now() - timedelta(minutes=10)
|
||||
more_than_five_mins_ago = datetime.utcnow() - timedelta(minutes=10)
|
||||
sample_notification.created_at = more_than_five_mins_ago
|
||||
notify_db.session.add(sample_notification)
|
||||
notify_db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user