This is probably a noob problem. For that I apologize, but I couldn't find a solution so far.
I short, for some reason that I don't understand, I can't access modules from my src directory in my tests.
My project setup looks like this:
src/package/module.py
tests/package/module_test.py
and my test roughly looks like this:
import package
import unittest
class module_test(TestCase):
def testSomeMethod(self):
m = package.SomeClass() #there is class of that name in module.py
I checked the run configuration setup in PyDev and it says that both src and tests are on the PYTHONPATH when I execute the tests. But when I try to run this test, I get the error 'module' object has no attribute 'SomeClass'.
What am I doing wrong?