Skip to content

Commit f19ef48

Browse files
committed
Update setup instructions
1 parent d54d0b9 commit f19ef48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/content/setup.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,13 @@ TESTING=true pytest tests/
157157

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

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

162-
The tests for background tasks require Redis
166+
The tests for background tasks require Redis.
163167
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:
164168

165169
```bash

0 commit comments

Comments
 (0)