added paths for training
-added basic tests for training
Steps to Test
Outline the steps to test
git fetch --all
git checkout SI_training_testing
kill the DB and migrations
python manage.py makemigrations bang
python manage.py migrate
add a training to the db
python manage.py runserver
open the training page
should show it on a list element
python manage.py test should run a test and give you an ok
Impacted Areas in Application
List general components of the application that this PR will affect:
url.py
training.html
nav_training.html
test.py
I think that's all?
*
Mentions @username
Tag users that need to review this code
Definition of Done
The project must be fully documented. This includes the following:
Complete README that documents the steps to install the code, how to install any dependencies, or system configuration needed.
Every class must be documented with purpose, author, and methods.
Every method must be documented with purpose and argument list - which itself must contain a short purpose for each argument.
The project must be able to run fully, and without errors, on each teammate's system.
Fulfills every requirement.
Every line of code has been peer reviewed.
For projects that require unit testing, core functionality must be identified and have at least one test for each
Link to Ticket
Closes # [Link]()
Description of Proposed Changes
Steps to Test
Outline the steps to test
kill the DB and migrations python manage.py makemigrations bang python manage.py migrate add a training to the db python manage.py runserver open the training page should show it on a list element python manage.py test should run a test and give you an ok
Impacted Areas in Application
List general components of the application that this PR will affect: url.py training.html nav_training.html test.py I think that's all? *
Mentions @username
Tag users that need to review this code
Definition of Done