I'm currently trying to get a automatic PyDev/nosetests/GAE setup going in Eclipse, verifying with command-line tinkering. So far, I have something that looks like the following:
Preferences -> PyDev -> PyUnit
Nose Test Runner
Parameters: --with-gae -w "/My/App/Root" --without-sandbox -P
Directory Structure (Normal GAE stuff omitted)
./src/
*module hierarchy*
./tests/
__init__.py
sometests.py
./main.py
./urls.py
At the moment, when I use the same parameters on the command-line in my app root, Python modules within src/ that import 'main' or 'urls' cause:
ERROR: Failure: ImportError (No module named main)
Note: This is a similar problem as another SO post related to nose. The solution isn't applicable in this case, as there is no __init__.py
in my application root.