I have directory which has a app and it has corresponding test script files in 'tests' directory.
project/
--myapp/
--__init__.py(<-- updated)
--tests/
--tests1.py
--tests2.py etc
--run_tests.py
runtests.py
traverses 'tests' directory recursively and executes all python scripts in it.
tests*.py
has to import myapp for the tests to run. Since, tests*.py
files are in 'tests' directory, it doesn't work.
How do I make 'myapp' to be available to all tests*.py
files in 'tests' directory? I think there would be simple solution than setting 'myapp' in PYTHONPATH.
Note: nosetests tests/
will work. So, just curious on how it works.
Thanks in advance.