mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 14:39:30 -02:30
Fix test warnings that escaped somehow (#15714)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user