API Tests - PARC-projects/video-query-home GitHub Wiki

Create Permissions

To run the test suit associated with the API, the following step needs to be completed before the tests will execute.

ALTER USER username CREATEDB;

username should be the same USER you set up in your environment variables, API_DB_USER.

Run

Once your USER has CREATEDB privileges, you can run the following command to run the test suite.

python manage.py test

Structure

All tests are located in the tests modules at src\queries\tests