Installation¶
Required Software¶
Git
Python
Firefox web browser
Geckodriver
MySQL or PostgreSQL
Local Setup¶
Clone the repository
Set the following environment variables:
DATABASE_URL
DJANGO_EMAIL_HOST_USER
- a gmail accountDJANGO_EMAIL_HOST_PASSWORD
- password to the gmail account (prefarably an app password)
Create and activate a virtual environment using
pipenv
by running$ pipenv shell
Install development dependencies by running
$ pipenv install --dev
Run the tests using
$ python manage.py test --settings=resource_center.settings.test
.Make sure you have
geckodriver
installed and in yourPATH
before attempting to run the test. Read selenium python docs for more information on how to do this.You could also add this flag
--exclude-tag=functional
to run unit tests only.