-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
basedir not being added when the tests dir doesn't have an __init__.py file #55
Comments
Original comment by Anonymous: In this: if you run py.test inside the pytestcase directory it doesnt insert pytestcase to the path, but if you put a init.py in the test dir it does. In nose both work as expected (the basedir is found and added to sys.path). |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): can we close this one? |
Originally reported by: Leonardo Santagada (BitBucket: santagada, GitHub: santagada)
if the tests is a subdirectory of my module and it doesn't have an init.py py.test doesn't add the correct basedir to sys.path.
I think the correct logic would be to check and if the directory to be used as basedir has as its parent a directory with an init.py it should go deeper... okay I wasn't very clear here, but what I want is to be able to have tests dir that is not importable and doesn't need to have a init.py
The text was updated successfully, but these errors were encountered: