mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
remove datetime.utcnow()
This commit is contained in:
@@ -37,6 +37,7 @@ from app.models import (
|
||||
Template,
|
||||
User,
|
||||
)
|
||||
from app.utils import utc_now
|
||||
from tests.app.db import (
|
||||
create_annual_billing,
|
||||
create_job,
|
||||
@@ -101,7 +102,7 @@ def test_update_jobs_archived_flag(notify_db_session, notify_api):
|
||||
sms_template = create_template(service=service, template_type=TemplateType.SMS)
|
||||
create_job(sms_template)
|
||||
|
||||
right_now = datetime.datetime.utcnow()
|
||||
right_now = utc_now()
|
||||
tomorrow = right_now + datetime.timedelta(days=1)
|
||||
|
||||
right_now = right_now.strftime("%Y-%m-%d")
|
||||
|
||||
Reference in New Issue
Block a user