set schedule.next_run to datetime.datetime

* Update JobNotificationMixin.context_stub
* .. TestJobNotificationMixin.CONTEXT_STRUCTURE
This commit is contained in:
Jim Ladd
2021-02-05 12:15:46 -08:00
parent 7b757f17a9
commit 5b3bb1e81d
2 changed files with 37 additions and 19 deletions

View File

@@ -348,7 +348,7 @@ class JobNotificationMixin(object):
'schedule': {'description': 'Sample schedule',
'id': 42,
'name': 'Stub schedule',
'next_run': '2038-01-01T00:00:00Z'},
'next_run': datetime.datetime(2038, 1, 1, 0, 0, 0, 0, tzinfo=datetime.timezone.utc)},
'unified_job_template': {'description': 'Sample unified job template description',
'id': 39,
'name': 'Stub Job Template',