mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
docs(tests): add README documenting CENTRAL_TEST_DB_DSN env var
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b183a621bb
commit
826141c71a
1 changed files with 18 additions and 0 deletions
18
tests/README.md
Normal file
18
tests/README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Central Tests
|
||||
|
||||
## Test Database
|
||||
|
||||
Some tests (notably `test_config_store.py`) require a real PostgreSQL database.
|
||||
By default, tests connect to:
|
||||
|
||||
```
|
||||
postgresql://central_test:testpass@localhost/central_test
|
||||
```
|
||||
|
||||
If your test database uses different credentials, set the `CENTRAL_TEST_DB_DSN`
|
||||
environment variable:
|
||||
|
||||
```bash
|
||||
export CENTRAL_TEST_DB_DSN="postgresql://myuser:mypass@localhost/mydb"
|
||||
uv run pytest tests/test_config_store.py
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue