tests: adapt test_global_timeout_trigger for anchor_expression behaviour

This commit is contained in:
Frédéric Péters 2020-01-29 11:10:36 +01:00
parent 6f06588a86
commit e8c16b010b
1 changed files with 2 additions and 1 deletions

View File

@ -623,7 +623,8 @@ def test_global_timeout_trigger(pub):
trigger.timeout = '2'
trigger.anchor = 'creation'
wf2 = assert_import_export_works(wf, include_id=True)
wf2 = Workflow.import_from_xml_tree(
ET.fromstring(ET.tostring(wf.export_to_xml(True))), True)
assert wf2.global_actions[0].triggers[-1].id == trigger.id
assert wf2.global_actions[0].triggers[-1].anchor == trigger.anchor