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

Transfer all tests to a tests module (REOPENED) #43

Closed JimmyTron closed 1 year ago

JimmyTron commented 1 year ago

What if we had all our tests in one place insteadvof having them on idividual apps? What would be the merits of demerits of doing so?

Originally posted by @JimmyTron in https://github.com/SpaceyaTech/Team-Rio-Django/pull/40#issuecomment-1321812723

hellen-22 commented 1 year ago

Like one file or?

Eugene-Kwaka commented 1 year ago

In the django documentation it says when the application scales and the test scales too, it is recommended to place the tests in packages such as test_models.py, test_forms.py and test_views.py. Maybe we can create a folder for the tests instead of a separate test app?