-
Notifications
You must be signed in to change notification settings - Fork 6
Tests
Jacob deGroot-Maggetti edited this page Sep 14, 2022
·
13 revisions
CantusDB has several test suites that should be run and kept up-to-date: one for the users
app, one for the articles
app, and two for the main_app
app.
Tests for the main_app
are kept in main_app/tests
(directory)
There are two test suites that should be run:
-
test_models.py
(code)- run with
python -Wa manage.py test main_app.tests.test_models
(the-Wa
flag tells Python to display deprecation warnings)
- run with
-
test_views.py
(code)- run
python -Wa manage.py test main_app.tests.test_views
- run
main_app/tests
contains two additional files:
-
make_fakes.py
(code): contains a number of functions used in the tests intest_models.py
andtest_views.py
-
test_input.py
(code): This test suite is out-of-date and should not be run. It contains a few failing tests of the Chant Create view; eventually, these tests might be fixed and added totest_views.py