You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add PostgreSQL configuration to CONTRIBUTING.md
- Document PostgreSQL 15+ as supported backend alongside MySQL 8+
- Add PostgreSQL environment variables (DJ_PG_HOST, DJ_PG_PORT, etc.)
- Document backend-parameterized tests and how to run per-backend
- Show pip install with [postgres] extra for psycopg2-binary
- Add PostgreSQL to external containers instructions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+38-2Lines changed: 38 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,26 +36,46 @@ pytest tests/
36
36
37
37
## Running Tests
38
38
39
-
Tests use [testcontainers](https://testcontainers.com/) to automatically manage MySQL and MinIO containers. No manual `docker-compose up` required.
39
+
Tests use [testcontainers](https://testcontainers.com/) to automatically manage MySQL, PostgreSQL, and MinIO containers. No manual `docker-compose up` required.
40
+
41
+
Integration tests are **backend-parameterized** — tests using the `backend` fixture run automatically against both MySQL and PostgreSQL.
40
42
41
43
```bash
42
-
pixi run test# All tests
44
+
pixi run test# All tests (both backends)
43
45
pixi run test-cov # With coverage
44
46
pixi run -e test pytest tests/unit/ # Unit tests only
45
47
pixi run -e test pytest tests/integration/test_blob.py -v # Specific file
48
+
pixi run -e test pytest -m mysql # MySQL tests only
49
+
pixi run -e test pytest -m postgresql # PostgreSQL tests only
46
50
```
47
51
48
52
**macOS Docker Desktop users:** If tests fail to connect:
Tests automatically spin up both MySQL and PostgreSQL containers via testcontainers. Backend-parameterized tests (those using the `backend` fixture in `tests/conftest.py`) run against both backends to ensure feature parity.
0 commit comments