SpaceyaTech / mastori

Mastori is a community-driven open-source project that aims to provide a simple and efficient blogging platform built for the Dev Community
https://www.spaceyatech.com/
22 stars 54 forks source link

add test folder in the Project i.e CMS folder and delete test.py files in the apps #44

Closed Eva-Wamuyu closed 1 year ago

hellen-22 commented 1 year ago

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.

Eva-Wamuyu commented 1 year ago

Noted

JimmyTron commented 1 year ago

@Eva-Wamuyu there's a conventional way of setting the test module check from the docs. Screenshot_2022-11-22-12-45-04-383_org.mozilla.firefox.png

https://docs.djangoproject.com/en/4.1/topics/testing/

Screenshot_2022-11-22-13-26-42-062_org.mozilla.firefox.jpg

https://docs.djangoproject.com/en/4.1/topics/testing/advanced/#testing-reusable-applications

Eva-Wamuyu commented 1 year ago

Okay, on it. Thank you.