Skip to content

Commit

Permalink
Satiate pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Chsudeepta authored and Chsudeepta committed Oct 17, 2024
1 parent e539829 commit 1da8554
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/logger/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ def test_GIVEN_logging_is_requested_THEN_handler_is_added():
if isinstance(handler, logging.handlers.TimedRotatingFileHandler):
loghandler = handler

assert isinstance(loghandler, logging.handlers.TimedRotatingFileHandler)
if isinstance(loghandler, logging.FileHandler):
assert loghandler is not None
assert loghandler.name == "timedRotatingFileHandler"
assert loghandler.when.lower() == "midnight"
assert loghandler.baseFilename.endswith(LOG_FILE_NAME)

if isinstance(loghandler, logging.handlers.BaseRotatingHandler):
assert loghandler.when.lower() == "midnight"

0 comments on commit 1da8554

Please sign in to comment.