Skip to content

Instantly share code, notes, and snippets.

@jcnars
Created October 5, 2022 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcnars/1fdd3ec7bb1936b5b7f20735c27729a1 to your computer and use it in GitHub Desktop.
Save jcnars/1fdd3ec7bb1936b5b7f20735c27729a1 to your computer and use it in GitHub Desktop.
TDD : 3rd lab
devops@ibm-dev:/app/labs/03_test_fixtures/tests$ python -m unittest
E
======================================================================
ERROR: test_account (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_account
Traceback (most recent call last):
File "/usr/local/lib/python3.9/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/local/lib/python3.9/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/app/labs/03_test_fixtures/tests/test_account.py", line 6, in <module>
from models import db
ModuleNotFoundError: No module named 'models'
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment