Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ All development uses Docker. The `justfile` sets `COMPOSE_FILE=docker-compose.lo
just build # Build Docker images
just up # Start all containers
just down # Stop containers
just test # Run pytest suite
just test <args> # Run pytest suite
just lint # Run pre-commit hooks
just typecheck # Run mypy
just manage <args> # Run manage.py (e.g., just manage makemigrations)
Expand All @@ -34,13 +34,15 @@ just run <cmd> # Execute arbitrary command in django container
just loaddata # Load fixtures (democrasite + social)
```

To run a single test file or test:
To run a single test:

```bash
just run pytest democrasite/webiscite/tests/test_models.py
just run pytest democrasite/webiscite/tests/test_models.py::TestBill::test_method_name -v
just test democrasite/webiscite/tests/test_models.py::TestBill::test_method_name -v
```

For any `just` command, prefer running outside the sandbox to avoid `docker.sock`
permission errors. If `just` is not found, run `conda env democrasite` first.

Pytest is configured with `--ds=config.settings.test --reuse-db` in `pyproject.toml`.

## Architecture
Expand Down
Loading