Closed Eva-Wamuyu closed 1 year ago
Noted
@Eva-Wamuyu there's a conventional way of setting the test module check from the docs.
https://docs.djangoproject.com/en/4.1/topics/testing/
https://docs.djangoproject.com/en/4.1/topics/testing/advanced/#testing-reusable-applications
Okay, on it. Thank you.
Inside the tests folder, in the accounts folder, rename the file for testing models from tests_models.py to test_models.py. For a minute i could not find the tests using pytest but when i renamed the file to test_models.py the tests were found.