Skip to content

Commit

Permalink
Update setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain-S committed Jan 8, 2025
1 parent d54d0b9 commit f19ef48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/content/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,13 @@ TESTING=true pytest tests/

The `TESTING=true` env var is important so that database commits are rolled back between each unit test.

**Note:** Visual Studio Code will try to import your .env file into your environment, which will cause a number of tests to fail.
To prevent this, we recommend changing the `python.envFile` setting to point to a non-existent file.
See <https://code.visualstudio.com/docs/python/environments#_environment-variable-definitions-file> for more.

**Note:** This will remove the contents of any [postgreSQL containers](#postgresql-container) you have running. If you don't want to lose them use [the helper script](#with-the-helper-script).

The tests for background tasks require Redis
The tests for background tasks require Redis.
Once you have a [Redis server](https://redis.io/docs/install/install-redis/) running (or a [Redis Docker](https://hub.docker.com/_/redis) container running), you can run the unit tests, including the background task tests, with:

```bash
Expand Down

0 comments on commit f19ef48

Please sign in to comment.