diff options
Diffstat (limited to 'tests/extensions/test_confusing_elif.py')
-rw-r--r-- | tests/extensions/test_confusing_elif.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/extensions/test_confusing_elif.py b/tests/extensions/test_confusing_elif.py index a8d7096c5..65fd9badd 100644 --- a/tests/extensions/test_confusing_elif.py +++ b/tests/extensions/test_confusing_elif.py @@ -21,7 +21,7 @@ class TestConfusingConsecutiveElifChecker(CheckerTestCase): CHECKER_CLASS = ConfusingConsecutiveElifChecker - def test_triggered_if_if_block_ends_with_elif(self): + def test_triggered_if_if_block_ends_with_elif(self) -> None: """ Given an if-elif construct When the body of the if ends with an elif @@ -43,7 +43,7 @@ class TestConfusingConsecutiveElifChecker(CheckerTestCase): ): self.checker.visit_if(if_node_to_test) - def test_triggered_if_elif_block_ends_with_elif(self): + def test_triggered_if_elif_block_ends_with_elif(self) -> None: """ Given an if-elif-elif construct When the body of the first elif ends with an elif @@ -67,7 +67,7 @@ class TestConfusingConsecutiveElifChecker(CheckerTestCase): ): self.checker.visit_if(if_node_to_test) - def test_triggered_if_block_ends_with_if(self): + def test_triggered_if_block_ends_with_if(self) -> None: """ Given an if-elif construct When the body of the if ends with an if @@ -87,7 +87,7 @@ class TestConfusingConsecutiveElifChecker(CheckerTestCase): ): self.checker.visit_if(if_node_to_test) - def test_not_triggered_if_indented_block_ends_with_else(self): + def test_not_triggered_if_indented_block_ends_with_else(self) -> None: """ Given an if-elif construct When the body of the if ends with an else @@ -107,7 +107,7 @@ class TestConfusingConsecutiveElifChecker(CheckerTestCase): with self.assertNoMessages(): self.checker.visit_if(if_node_to_test) - def test_not_triggered_if_indentend_block_ends_with_call(self): + def test_not_triggered_if_indentend_block_ends_with_call(self) -> None: """ Given an if-elif construct When the body of the if ends with a function call @@ -131,7 +131,7 @@ class TestConfusingConsecutiveElifChecker(CheckerTestCase): with self.assertNoMessages(): self.checker.visit_if(if_node_to_test) - def test_not_triggered_if_indented_block_ends_with_ifexp(self): + def test_not_triggered_if_indented_block_ends_with_ifexp(self) -> None: """ Given an if-elif construct When the body of the if ends with an if expression @@ -152,7 +152,7 @@ class TestConfusingConsecutiveElifChecker(CheckerTestCase): with self.assertNoMessages(): self.checker.visit_if(if_node_to_test) - def test_not_triggered_if_outer_block_does_not_have_elif(self): + def test_not_triggered_if_outer_block_does_not_have_elif(self) -> None: """ Given an if construct without an elif When the body of the if ends with an if @@ -174,7 +174,7 @@ class TestConfusingConsecutiveElifChecker(CheckerTestCase): with self.assertNoMessages(): self.checker.visit_if(if_node_to_test) - def test_not_triggered_if_outer_block_continues_with_if(self): + def test_not_triggered_if_outer_block_continues_with_if(self) -> None: """ Given an if construct which continues with a new if construct When the body of the first if ends with an if expression |