Memberships

This commit is contained in:
2026-10-23 12:02:50 -04:00
parent 87dd5453e4
commit 6cf0f0525f
42 changed files with 2145 additions and 7 deletions
+24
View File
@@ -0,0 +1,24 @@
# Disposable fixture; a separate Compose project prevents touching production.
services:
db:
image: postgres:17
environment:
POSTGRES_DB: membership_test
POSTGRES_USER: membership_test
POSTGRES_PASSWORD: ${MEMBERSHIP_TEST_DB_PASSWORD:?Set a disposable test password}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U membership_test -d membership_test"]
interval: 2s
timeout: 5s
retries: 30
tmpfs:
- /var/lib/postgresql/data
tests:
build: .
image: www-membership-test
environment:
MEMBERSHIP_TEST_DB_PASSWORD: ${MEMBERSHIP_TEST_DB_PASSWORD:?Set a disposable test password}
command: ["python", "manage.py", "test", "members.tests", "--settings=config.postgres_test_settings", "--verbosity=1"]
depends_on:
db:
condition: service_healthy