Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
isolation when importing test modules (nose-style) #268
I have a problem with multiple test dirs (find an example attached).
I have the following project structure:
if i put
Nose works fine without
this is a tricky interaction of pythonpaths
due to your test layout there are 2 tests packages that are not namespaces
it would require a custom import system to propperly catch that
its up for consideration
This is really about allowing the same import path to map to different file system paths. This can lead to a number of problems and is the reason, i think, why nose2 dropped it, see https://nose2.readthedocs.org/en/latest/differences.html#test-discovery-and-loading
For now, i regard this issue as an "enhancement" and we may arrive at the conclusion to not support it. Depends also on further feedback.