Skip to content

Commit

Permalink
updated test to illustrate raw string better
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Apr 3, 2024
1 parent ef5efc3 commit 5dd6f5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_resolutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,11 @@ def test_description(self) -> None:

def test_beat_logging(self, caplog: pytest.LogCaptureFixture) -> None:
caplog.set_level(logging.INFO)
Matches(r"pattern").resolve()
Matches(r"\tpattern").resolve()

assert [r.msg for r in caplog.records] == [
"... hoping it's text matching the pattern r'pattern'.",
" => a string matching 'pattern'",
r"... hoping it's text matching the pattern r'\tpattern'.",
r" => a string matching '\tpattern'",
]

def test_description_with_compile(self) -> None:
Expand Down

0 comments on commit 5dd6f5e

Please sign in to comment.