(New to Python, old Java guy.) I have followed the recommendations for Python project set-up (as detailed here: What is the best project structure for a Python application?).
My structure is then:
artman
`-- artman
+-- artman.py
+-- util.py
`-- test
`-- util_test.py
...and my test code attempts unsuccessfully to import what's inside util.py that it's going to test:
import unittest
import util # <------ Unresolved import: util
class UtilTest( unittest.TestCase ):
def testLookForArtmanRoot( self ):
util.lookForArtmanRoot( "." )
if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.testName']
unittest.main()
I'm sure this is a simple, newbie Python mistake, but despite Googling I don't know if I must amend PYTHONPATH or employ some other solution.