Here is a scenario, i hope you can help me with.
I have python unit tests in /home/k/PR-TEST/Pr/test
kahmed@qatools:~/PR-TEST/Pr-test$ ls
_apache.py archive clienttest decorators.py fakeTecoreClient.py fixtures.pyc psqlharness.py servertest testhelp.pyc testutils.pyc
apache_server.py cache commontest decorators.pyc fixtures.py mysqlharness.py runtests.sh testhelp.py testutils.py
and have the package that i am actually running tests against @ /home/k/PR/Pr named (directory named) pref
kahmed@qatools:~/PR/Pr$ pwd
/home/kahmed/PR/Pr
kahmed@qatools:~/PR/Pr$ ls
bin conf images init.d iped logrotate.d NEWS pref rpa sbin scripts src test VERSION
Now, i cd to ~/PR-TEST/Pr-test, and run:
nosetests -s --with-coverage --cover-package /home/k/PR/Pr/pref `find . -name "*test.py"`
but i get erros that it cannot find the packages in pref
Any idea how to resolve this ?
I have to make sure that the python environment knows about the package pr