Installation¶
Required Software¶
Git
Python
Firefox web browser
Geckodriver
MySQL or PostgreSQL
Local Setup¶
Clone the repository
Set the following environment variables:
DATABASE_URLDJANGO_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
pipenvby running$ pipenv shellInstall development dependencies by running
$ pipenv install --devRun the tests using
$ python manage.py test --settings=resource_center.settings.test.Make sure you have
geckodriverinstalled and in yourPATHbefore 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=functionalto run unit tests only.