Skip to content

Commit

Permalink
Fix test to use Logrecord args instead of msg
Browse files Browse the repository at this point in the history
  • Loading branch information
schlenk committed Feb 28, 2024
1 parent 9d9aa8c commit 072f079
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_oic_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,12 +1349,12 @@ def test_verify_sector_identifier_no_scheme(self):

assert len(logcap.records) == 2
# First log record is from server...
assert isinstance(logcap.records[1].msg, MissingSchema)
assert isinstance(logcap.records[1].args[0], MissingSchema)
error = (
"Invalid URL 'example.com': No scheme supplied. Perhaps you meant "
"https://example.com?"
)
assert str(logcap.records[1].msg) == error
assert logcap.records[1].getMessage() == error

def test_verify_sector_identifier_nonreachable(self):
rr = RegistrationRequest(
Expand Down Expand Up @@ -1386,7 +1386,7 @@ def test_verify_sector_identifier_error(self):

assert len(logcap.records) == 2
# First log record is from server...
assert logcap.records[1].msg == error
assert logcap.records[1].args[0] == error

def test_verify_sector_identifier_malformed(self):
rr = RegistrationRequest(
Expand Down

0 comments on commit 072f079

Please sign in to comment.