Skip to content
Permalink
Browse files

TST: Init class variables in setUpClass method

For easier debugging with breakpoints not stopping
where not needed.
  • Loading branch information...
kernc committed May 2, 2019
1 parent 153b146 commit 82406a9bc51589f91b512bb524e8b28f600fa5cd
Showing with 4 additions and 2 deletions.
  1. +4 −2 pdoc/test/__init__.py
@@ -771,8 +771,10 @@ def test_extract_toc(self):


class Docformats(unittest.TestCase):
_module = pdoc.Module(pdoc)
_docmodule = pdoc.import_module(EXAMPLE_MODULE)
@classmethod
def setUpClass(cls):
cls._module = pdoc.Module(pdoc)
cls._docmodule = pdoc.import_module(EXAMPLE_MODULE)

@staticmethod
def _link(dobj, *args, **kwargs):

0 comments on commit 82406a9

Please sign in to comment.
You can’t perform that action at this time.