Skip to content

Commit

Permalink
Fix test warnings that escaped somehow (#15714)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding authored Dec 18, 2024
1 parent 65b104e commit c015818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion awx/main/tests/functional/models/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def test_apply_workflow_job_prompts(self, workflow_job_template, wfjt_prompts, p
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)
Expand Down
4 changes: 2 additions & 2 deletions awx/main/tests/unit/utils/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def test_hostame_regex_validator_default_constructor(self, regex_expr, re_flags)

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)
Expand All @@ -336,4 +336,4 @@ def test_good_call_with_inverse(self, regex_expr, re_flags, inverse_match=True):

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

0 comments on commit c015818

Please sign in to comment.