mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 17:37:30 -02:30
Fixing is_detached methods' filters
This commit is contained in:
committed by
Alan Rominger
parent
7de5f77262
commit
dca27b59c9
@@ -44,7 +44,7 @@ class Label(CommonModelNameNotUnique):
|
|||||||
inventory_labels__isnull=True,
|
inventory_labels__isnull=True,
|
||||||
schedule_labels__isnull=True,
|
schedule_labels__isnull=True,
|
||||||
workflowjobtemplatenode_labels__isnull=True,
|
workflowjobtemplatenode_labels__isnull=True,
|
||||||
workflowjobnode_labels=True,
|
workflowjobnode_labels__isnull=True,
|
||||||
).exists()
|
).exists()
|
||||||
|
|
||||||
def is_candidate_for_detach(self):
|
def is_candidate_for_detach(self):
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class TestLabelFilterMocked:
|
|||||||
inventory_labels__isnull=True,
|
inventory_labels__isnull=True,
|
||||||
schedule_labels__isnull=True,
|
schedule_labels__isnull=True,
|
||||||
workflowjobtemplatenode_labels__isnull=True,
|
workflowjobtemplatenode_labels__isnull=True,
|
||||||
workflowjobnode_labels=True,
|
workflowjobnode_labels__isnull=True,
|
||||||
)
|
)
|
||||||
mock_query_set.exists.assert_called_with()
|
mock_query_set.exists.assert_called_with()
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ class TestLabelFilterMocked:
|
|||||||
inventory_labels__isnull=True,
|
inventory_labels__isnull=True,
|
||||||
schedule_labels__isnull=True,
|
schedule_labels__isnull=True,
|
||||||
workflowjobtemplatenode_labels__isnull=True,
|
workflowjobtemplatenode_labels__isnull=True,
|
||||||
workflowjobnode_labels=True,
|
workflowjobnode_labels__isnull=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
mock_query_set.exists.assert_called_with()
|
mock_query_set.exists.assert_called_with()
|
||||||
|
|||||||
Reference in New Issue
Block a user