Skip to content

Commit

Permalink
Fix the test for unauthorized access (#138)
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Bednar <[email protected]>
  • Loading branch information
lukas-bednar authored Apr 12, 2024
1 parent 8acf19d commit 23a1900
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_jira.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import re
from packaging.version import Version

import pytest
Expand Down Expand Up @@ -466,7 +467,9 @@ def test_pass():
'--jira-password', 'passwd123'
)
result = testdir.runpytest(*ARGS)
assert '401 Client Error' in result.stdout.str()
assert re.search(
"4(01|29) Client Error", result.stdout.str(), re.MULTILINE
)


def test_disabled_ssl_verification_pass(testdir):
Expand Down

0 comments on commit 23a1900

Please sign in to comment.