DJANGO_SETTINGS_MODULE = core.settings where core is the base app initially created with startproject must be added to pytest.ini
python -m pytest -vs .\posts\tests_posts -vs python -m pytest -vs .\filemanager\tests_filemanager -vs python -m pytest -vs .\ecommerce\tests_ecommerce -vs python -m pytest -vs .\catalog\tests_catalog -vs python -m pytest -vs .\accounts\tests_accounts -vs
-
Pybites - https://www.youtube.com/watch?v=L5jWFU2sVXQ for help with setting up PyTest tests for Django.
-
Ssali Jonathan - https://www.youtube.com/watch?v=Nn3Yjea5KCI&list=PLEt8Tae2spYlVZUBBEE9PtX-NXk_hw7o4 for the TDD approach to building the
postsapp. This gives a basis for many good tests. I have transported a few for demonstation purposes inpytest_tests. (PyTest searches for all test files with test_ or whatever is specified in the pytest.ini file in root).
-
DjangoStars - https://djangostars.com/blog/django-pytest-testing/