Skip to content

Commit 4e5f26f

Browse files
authored
Improve claude testing instructions (#324)
1 parent 73d0d51 commit 4e5f26f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

CLAUDE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ All development uses Docker. The `justfile` sets `COMPOSE_FILE=docker-compose.lo
2222
just build # Build Docker images
2323
just up # Start all containers
2424
just down # Stop containers
25-
just test # Run pytest suite
25+
just test <args> # Run pytest suite
2626
just lint # Run pre-commit hooks
2727
just typecheck # Run mypy
2828
just manage <args> # Run manage.py (e.g., just manage makemigrations)
@@ -34,13 +34,15 @@ just run <cmd> # Execute arbitrary command in django container
3434
just 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+
4446
Pytest is configured with `--ds=config.settings.test --reuse-db` in `pyproject.toml`.
4547

4648
## Architecture

0 commit comments

Comments
 (0)