Fix test warnings that escaped somehow (#15714)

This commit is contained in:
Alan Rominger
2024-12-18 15:21:53 -05:00
committed by GitHub
parent 65b104e1f9
commit c0158181c3
2 changed files with 3 additions and 3 deletions

View File

@@ -377,7 +377,7 @@ class TestWorkflowJobTemplatePrompts:
assert workflow_job.scm_branch is None
assert workflow_job.job_tags is None
assert workflow_job.skip_tags is None
assert len(workflow_job.labels.all()) is 0
assert len(workflow_job.labels.all()) == 0
# fields from prompts used
workflow_job = workflow_job_template.create_unified_job(**prompts_data)

View File

@@ -318,7 +318,7 @@ class TestHostnameRegexValidator:
def test_good_call(self, regex_expr, re_flags):
h = HostnameRegexValidator(regex=regex_expr, flags=re_flags)
assert (h("192.168.56.101"), None)
assert h("192.168.56.101") is None
def test_bad_call(self, regex_expr, re_flags):
h = HostnameRegexValidator(regex=regex_expr, flags=re_flags)
@@ -336,4 +336,4 @@ class TestHostnameRegexValidator:
def test_bad_call_with_inverse(self, regex_expr, re_flags, inverse_match=True):
h = HostnameRegexValidator(regex=regex_expr, flags=re_flags, inverse_match=inverse_match)
assert (h("@#$%)$#(TUFAS_DG"), None)
assert h("@#$%)$#(TUFAS_DG") is None