Fixing is_detached methods' filters

This commit is contained in:
John Westcott IV
2022-09-19 16:33:52 -04:00
committed by Alan Rominger
parent 7de5f77262
commit dca27b59c9
2 changed files with 3 additions and 3 deletions

View File

@@ -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):

View File

@@ -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()