Acquire test database
acquire_test_databaseGet an isolated PostgreSQL test database cloned from the project's dev database, plus Redis, and receive plaintext connection strings for running tests against realistic data.
Instructions
Acquire an isolated real test environment (a PostgreSQL database cloned from the project's dev database, plus a free Redis db) and return plaintext connection strings. Use this whenever tests need a real database — never fall back to sqlite or an in-memory substitute. The PG database is a clone of the project's dev database, so it already has schema and seed data. Auto-reclaimed at expiry; call release_test_database when done. Requires project and purpose.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | ||
| purpose | Yes | ||
| project_id | Yes | ||
| ttl_minutes | No | ||
| approval_token | No | ||
| approval_wait_seconds | No |