Ask Your Question

Revision history [back]

You probably need to set the Python Path in the Project Properties dialog to include the .../src directory. Python uses the python path to find module files to import. Why it works when debugging a file in the src directory is that python adds the directory of the main script file to the python path when it starts, but the main script file is the file with tests when you run unittests. This is case both when you run tests in Wing or from the command line.