I’m working on the final exercise, and have a strange issue. I have previously had difficulties with running nosetests. My file structure is the same as laid out in ex 52:
app.py runs just fine on localhost in the browser, but when nosetests run I get a failure. The import statements in planisphere_tests.py are taken directly from the exercise:
from nose.tools import * from gothonweb.planisphere import *
File "/Users/Zeesy/hard_way/projects/gothonweb/app.py", line 3, in <module> import planisphere ModuleNotFoundError: No module named 'planisphere'
When run with:
from nose.tools import * import planisphere
File "/Users/Zeesy/hard_way/projects/gothonweb/tests/planisphere_tests.py", line 2, in <module> import planisphere ModuleNotFoundError: No module named 'planisphere'
As mentioned, app.py runs the local server with no problems and the game works perfectly in the browser. What is going on here?