Skip to content

Commit

Permalink
Update tests/test_web_log.py
Browse files Browse the repository at this point in the history
Co-authored-by: J. Nick Koston <[email protected]>
  • Loading branch information
Dreamsorcerer and bdraco authored Apr 16, 2023
1 parent ef34602 commit 7eaa6fb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_web_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,3 @@ def test_logger_does_nothing_when_disabled(caplog: pytest.LogCaptureFixture) ->
mock.Mock(name="mock_request"), mock.Mock(name="mock_response"), 42
)
assert "mock_response" in caplog.text
caplog.clear()
mock_logger.setLevel(logging.WARNING)
access_logger.log(
mock.Mock(name="mock_request"), mock.Mock(name="mock_response"), 42
)
assert "mock_response" not in caplog.text

0 comments on commit 7eaa6fb

Please sign in to comment.