Skip to content

Commit

Permalink
fix(tests): Even more coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
znerol committed Dec 4, 2021
1 parent e630dd1 commit fe9f794
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def test_logging_filter_args(caplog):
logging.getLogger("anonip").setLevel(logging.CRITICAL)

logger = logging.getLogger("filter_args")
logger.addFilter(anonip.AnonipFilter(args=['ip', 'non-existing-attr'], extra=[]))
logger.addFilter(anonip.AnonipFilter(args=["ip", "non-existing-attr"], extra=[]))
logger.setLevel(logging.INFO)

logger.info("%(ip)s string", {"ip": "192.168.100.200"})
Expand All @@ -374,7 +374,7 @@ def test_logging_filter_extra(caplog):
logger = logging.getLogger("filter_args")
logger.addFilter(
anonip.AnonipFilter(
extra=['ip', 'non-existing-key'], anonip={"ipv4mask": 16, "ipv6mask": 64}
extra=["ip", "non-existing-key"], anonip={"ipv4mask": 16, "ipv6mask": 64}
)
)
logger.setLevel(logging.INFO)
Expand Down

0 comments on commit fe9f794

Please sign in to comment.