Skip to content

Commit

Permalink
Merge pull request #245 from lsst-sqre/u/rra/dependencies
Browse files Browse the repository at this point in the history
Fix exception logging test
  • Loading branch information
rra authored May 6, 2024
2 parents 63a0808 + 2e7f1ed commit ca6614f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/logging_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ def test_dev_exception_logging(caplog: LogCaptureFixture) -> None:

assert caplog.record_tuples[0][0] == "myapp"
assert caplog.record_tuples[0][1] == logging.ERROR
assert "Traceback (most recent call last)" in caplog.record_tuples[0][2]
assert '"this is some exception"' in caplog.record_tuples[0][2]
assert "Traceback" in _strip_color(caplog.record_tuples[0][2])
assert "this is some exception" in _strip_color(caplog.record_tuples[0][2])


def test_production_exception_logging(caplog: LogCaptureFixture) -> None:
Expand Down

0 comments on commit ca6614f

Please sign in to comment.