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