Skip to content

Commit

Permalink
fix(tests): More coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
znerol committed Nov 29, 2021
1 parent 1637821 commit d7d3b33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,11 @@ def test_logging_filter_extra(caplog):
logging.getLogger("anonip").setLevel(logging.CRITICAL)

logger = logging.getLogger("filter_args")
logger.addFilter(anonip.AnonipFilter(extra=['ip', 'non-existing-key'], anonip={"ipv4mask": 16, "ipv6mask": 64}))
logger.addFilter(
anonip.AnonipFilter(
extra=['ip', 'non-existing-key'], anonip={"ipv4mask": 16, "ipv6mask": 64}
)
)
logger.setLevel(logging.INFO)

logger.info("string", extra={"ip": "192.168.100.200"})
Expand Down

0 comments on commit d7d3b33

Please sign in to comment.