mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 19:07:39 -02:30
update wf done and failed tests
This commit is contained in:
@@ -195,21 +195,16 @@ class TestIsWorkflowDone():
|
|||||||
g.mark_dnr_nodes()
|
g.mark_dnr_nodes()
|
||||||
nodes[1].job = Job(status='successful')
|
nodes[1].job = Job(status='successful')
|
||||||
g.mark_dnr_nodes()
|
g.mark_dnr_nodes()
|
||||||
nodes[2].job = Job(status='failure')
|
nodes[2].job = Job(status='failed')
|
||||||
return (g, nodes)
|
return (g, nodes)
|
||||||
|
|
||||||
def test_is_workflow_done(self, workflow_dag_2):
|
def test_is_workflow_done(self, workflow_dag_2):
|
||||||
g = workflow_dag_2[0]
|
g = workflow_dag_2[0]
|
||||||
|
|
||||||
is_done, is_failed = g.is_workflow_done()
|
assert g.is_workflow_done() is False
|
||||||
|
|
||||||
assert is_done is False
|
|
||||||
assert is_failed is False
|
|
||||||
|
|
||||||
def test_is_workflow_done_failed(self, workflow_dag_failed):
|
def test_is_workflow_done_failed(self, workflow_dag_failed):
|
||||||
g = workflow_dag_failed[0]
|
g = workflow_dag_failed[0]
|
||||||
|
|
||||||
is_done, is_failed = g.is_workflow_done()
|
assert g.is_workflow_done() is True
|
||||||
|
assert g.has_workflow_failed() is True
|
||||||
assert is_done is True
|
|
||||||
assert is_failed is True
|
|
||||||
|
|||||||
Reference in New Issue
Block a user