Installation

Required Software

  1. Git

  2. Python

  3. Firefox web browser

  4. Geckodriver

  5. MySQL or PostgreSQL

Local Setup

  1. Clone the repository

  2. Set the following environment variables:

    • DATABASE_URL

    • DJANGO_EMAIL_HOST_USER - a gmail account

    • DJANGO_EMAIL_HOST_PASSWORD - password to the gmail account (prefarably an app password)

  3. Create and activate a virtual environment using pipenv by running $ pipenv shell

  4. Install development dependencies by running $ pipenv install --dev

  5. Run the tests using $ python manage.py test --settings=resource_center.settings.test.

    • Make sure you have geckodriver installed and in your PATH 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.