I run a couple of nosetests with test cases in different modules (files), each of which contains different tests.
I want to define a function / method that is called only once at runtime using nosetest .
I looked at the documentation (and, for example, here ), and see if there are methods like setup_module , etc. - but where and how to use them? Put them in my __init__.py ? Something other?
I tried using the following:
class TestSuite(basicsuite.BasicSuite): def setup_module(self): print("MODULE") ...
but this listing is never executed when I run the test using nosetest . I also do not get from unittest.TestCase (which will lead to errors).
source share