Skip to content

Commit

Permalink
Fix warning for test asserting validation does not throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed May 20, 2024
1 parent 7de350d commit 95108ab
Showing 1 changed file with 2 additions and 2 deletions.
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)
h("192.168.56.101")

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)
h("@#$%)$#(TUFAS_DG")

0 comments on commit 95108ab

Please sign in to comment.