Ex47 Nosetesting

In excercise 47, I’m trying to nosetest the files that were given. However, whenever I run the script it says “ModuleNotFoundError: No module named ‘ex47’”

So I looked that up, and Zed said to move up in the directory, to the folder that held ex47. That solved the issue, but now it says “Ran 0 tests in 0.002s”

How do I get it to run the three appropriate tests?

Check the tests are named properly ‘something_tests.py’ not ‘something_test.py’. That can catch you out.

But also the python path:

export PYTHONPATH=.

Which I believe adds the current location to the path.

1 Like