Is it possible for the nose block testing platform to run tests during the module compilation phase?
In fact, I would like to check something with the following structure:
x = 123
def test_x():
assert (x == 123)
del x
nosetests tells me that x is undefined, since it apparently runs test_x () after importing the module. Is there a way to conduct a nose test during the compilation phase, and after releasing the module from unnecessary resources after use?
source
share