Note: The required password here is `atdb123`, not your sudo password.
<br/><br/>
3. Make sure you have Python installed. Then go to the `atdb` directory (not the second `atdb/atdb`) - it's where the `manage.py` lives. Create a virtual environment and install dependencies:
To run tests, you can spin up a dedicated test database locally using the the provided `docker-compose-test-local.yml` file. This test database will not interfere with your local development database. For example, you can run this command from the `atdb/docker` folder:
` docker compose -f .\docker-compose-test-local.yml up -d`
After spinning up the database, you can execute the tests with the following command:
`python manage.py test --settings atdb.settings.test_local`
To run tests, you can spin up a dedicated test database locally with docker.
This test database will not interfere with your local development database.
```shell
docker compose -f docker/docker-compose-test-local.yml up -d
Dedicated settings for running the tests are provided in the `atdb/settings/test_local.dev` file. For convenience, `test.bat` is provided to run the above command (Windows only).
Finally, these tests are also executed in the CI pipeline through the test stage in the `.gitlab-ci.yml` file. For running the tests in the CI pipeline, the settings file `atdb/settings/test_ci.dev` is used.