Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbish committed Dec 4, 2024
1 parent 69e6a78 commit 7c2626e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_pam_duo.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ def test_invalid_delimiter_value_colon(self):
result = pam_duo(
["-d", "-c", temp.name, "true"],
)
self.assertEqual(
result["stderr"][1],
self.assertRegexSomeline(
result["stderr"],
"Invalid gecos_delim '{delim}' (delimiter must be punctuation other than ':')".format(
delim=config["gecos_delim"]
),
Expand All @@ -419,15 +419,15 @@ def test_invalid_delimiter_value_whitespace(self):
["-d", "-c", temp.name, "true"],
)
self.assertEqual(
result["stderr"][1],
result["stderr"][0],
"Invalid character option length. Character fields must be 1 character long: ''",
)
self.assertRegex(
result["stderr"][2],
result["stderr"][1],
r"Invalid pam_duo option: 'gecos_delim'",
)
self.assertRegex(
result["stderr"][3],
result["stderr"][2],
r"Parse error in {config}, line \d+".format(config=temp.name),
)

Expand Down

0 comments on commit 7c2626e

Please sign in to comment.