Skip to content

API Tests

Chad Ramos edited this page Aug 29, 2018 · 2 revisions

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