Skip to content

Commit 38bc3d4

Browse files
authored
ignore fact creation timestamp comparison in scheduling unit test (#3215)
* ignore fact creation timestamp comparison in scheduling unit test * fix syntax
1 parent 5eb0f29 commit 38bc3d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/api/v2/handlers/test_schedules_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def expected_new_schedule_dump(new_schedule_payload):
7373
schedule = ScheduleSchema().load(new_schedule_payload)
7474
dump = schedule.schema.dump(schedule)
7575
dump['task']['id'] = mock.ANY
76+
if 'facts' in dump['task']['source']:
77+
for f in dump['task']['source']['facts']:
78+
f['created'] = mock.ANY
7679
return dump
7780

7881

0 commit comments

Comments
 (0)