Skip to content

Commit a0b8c2b

Browse files
committed
Fix formatting error in test file
1 parent cc69800 commit a0b8c2b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

tests/unittest_checker_logging.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ def test_detects_standard_logging_module(self):
3030
)
3131
self.checker.visit_module(None)
3232
self.checker.visit_import(stmts[0])
33-
with self.assertAddsMessages(Message("logging-not-lazy", node=stmts[1], args=("lazy %",))):
33+
with self.assertAddsMessages(
34+
Message("logging-not-lazy", node=stmts[1], args=("lazy %",))
35+
):
3436
self.checker.visit_call(stmts[1])
3537

3638
def test_dont_crash_on_invalid_format_string(self):
@@ -51,7 +53,9 @@ def test_detects_renamed_standard_logging_module(self):
5153
)
5254
self.checker.visit_module(None)
5355
self.checker.visit_import(stmts[0])
54-
with self.assertAddsMessages(Message("logging-not-lazy", node=stmts[1], args=("lazy %",))):
56+
with self.assertAddsMessages(
57+
Message("logging-not-lazy", node=stmts[1], args=("lazy %",))
58+
):
5559
self.checker.visit_call(stmts[1])
5660

5761
@set_config(logging_modules=["logging", "my.logging"])
@@ -64,7 +68,9 @@ def test_nonstandard_logging_module(self):
6468
)
6569
self.checker.visit_module(None)
6670
self.checker.visit_import(stmts[0])
67-
with self.assertAddsMessages(Message("logging-not-lazy", node=stmts[1], args=("lazy %",))):
71+
with self.assertAddsMessages(
72+
Message("logging-not-lazy", node=stmts[1], args=("lazy %",))
73+
):
6874
self.checker.visit_call(stmts[1])
6975

7076
def _assert_logging_format_no_messages(self, stmt):

0 commit comments

Comments
 (0)