Skip to content

Commit

Permalink
ignore setUpModule/tearDownModule by default (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrudenell authored May 19, 2022
1 parent a5c6ba6 commit 3626348
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pep8ext_naming.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ class _FunctionType(object):
'tearDown',
'setUpClass',
'tearDownClass',
'setUpModule',
'tearDownModule',
'asyncSetUp',
'asyncTearDown',
'setUpTestData',
Expand Down
8 changes: 8 additions & 0 deletions testsuite/N802.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ def setUp():
def tearDown():
pass

#: Okay
def setUpModule():
pass

#: Okay
def tearDownModule():
pass

#: Okay
class TestCase:
def setUp(self):
Expand Down

0 comments on commit 3626348

Please sign in to comment.