Fix test setup

This commit is contained in:
Nuno Campos
2024-08-28 12:48:29 -07:00
parent 112700810c
commit 03f6cf779d
2 changed files with 4 additions and 3 deletions
+4 -2
View File
@@ -20,16 +20,18 @@ start-postgres:
stop-postgres:
docker compose -f tests/compose-postgres.yml down
TEST_PATH ?= .
test:
make start-postgres; \
poetry run pytest; \
poetry run pytest $(TEST_PATH); \
EXIT_CODE=$$?; \
make stop-postgres; \
exit $$EXIT_CODE
test_watch:
make start-postgres; \
poetry run ptw .; \
poetry run ptw . -- --ff -v -x -n auto --dist worksteal --snapshot-update --tb short $(TEST_PATH); \
EXIT_CODE=$$?; \
make stop-postgres; \
exit $$EXIT_CODE
-1
View File
@@ -66,7 +66,6 @@ omit = ["tests/*"]
[tool.pytest-watcher]
now = true
delay = 0.1
runner_args = ["--ff", "-v", "-x", "-n", "auto", "--dist", "worksteal", "--snapshot-update", "--tb", "short"]
patterns = ["*.py"]
[build-system]