Skip to content

Testing

Benjamin West edited this page Mar 18, 2023 · 10 revisions

Structure of tests

Pretty simplistic, there is a testing folder within the vets django application which houses the tests.

Env vars for local testing

export DJANGO_SECRET_KEY="<< some long string>>>"
export DJANGO_DATABASE="local"
export DJANGO_DEBUG="True" 

Running the tests

Just a call to:

python application/manage.py test --keepdb

Database interactions / manual validation

python application/manage.py dbshell
Clone this wiki locally