File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ All development uses Docker. The `justfile` sets `COMPOSE_FILE=docker-compose.lo
2222just build # Build Docker images
2323just up # Start all containers
2424just down # Stop containers
25- just test # Run pytest suite
25+ just test < args > # Run pytest suite
2626just lint # Run pre-commit hooks
2727just typecheck # Run mypy
2828just manage < args> # Run manage.py (e.g., just manage makemigrations)
@@ -34,13 +34,15 @@ just run <cmd> # Execute arbitrary command in django container
3434just loaddata # Load fixtures (democrasite + social)
3535```
3636
37- To run a single test file or test :
37+ To run a single test:
3838
3939``` bash
40- just run pytest democrasite/webiscite/tests/test_models.py
41- just run pytest democrasite/webiscite/tests/test_models.py::TestBill::test_method_name -v
40+ just test democrasite/webiscite/tests/test_models.py::TestBill::test_method_name -v
4241```
4342
43+ For any ` just ` command, prefer running outside the sandbox to avoid ` docker.sock `
44+ permission errors. If ` just ` is not found, run ` conda env democrasite ` first.
45+
4446Pytest is configured with ` --ds=config.settings.test --reuse-db ` in ` pyproject.toml ` .
4547
4648## Architecture
You can’t perform that action at this time.
0 commit comments