mirror of
https://github.com/Zproger/Aurum.git
synced 2026-10-12 18:46:40 +07:00
backend/tests/: 33 pytest tests against a real Postgres database (aurum_test, created/migrated/dropped per run) exercised through the actual HTTP API — not sqlite, not mocks, and the real `aurum` database is never opened (app lifespan is skipped, get_session is overridden per test). Covers transaction category-kind validation, year/month/date-range filtering and pagination, dashboard summary arithmetic, budget status, cash flow, and the /transactions/years picker. e2e/: 6 Playwright specs driving a real browser against a fully separate throwaway docker-compose stack (run.sh: separate project name, database, port, and volume, torn down with `down -v` on exit) — regression coverage for the Recent Transactions month bug, the Card grid-overflow bug, the frozen-year bug, the Net Worth default range, and the Dashboard-> Transactions deep link, all fixed earlier this session. Also synced the backend's APP_VERSION constant (stale at 0.15.2, embedded in exported backups) with the frontend version.
53 lines
1.0 KiB
Plaintext
53 lines
1.0 KiB
Plaintext
# Env — everything named .env* is ignored except the checked-in template.
|
|
# Covers .env, .env.local, .env.production, a stray .env.bak, etc.
|
|
.env
|
|
.env.*
|
|
!.env.example
|
|
|
|
# Local Docker Compose overrides commonly used to inject secrets/ports
|
|
# without touching the tracked docker-compose.yml.
|
|
docker-compose.override.yml
|
|
|
|
# TLS/SSH keys, in case a reverse-proxy cert ends up dropped in the repo dir.
|
|
*.pem
|
|
*.key
|
|
*.crt
|
|
id_rsa
|
|
id_ed25519
|
|
|
|
# Database dumps / exports — pg_dump output or a downloaded
|
|
# "aurum-backup-*.json" from Settings landing in the repo by accident.
|
|
# Both contain full financial data and must never be committed.
|
|
*.sql
|
|
*.dump
|
|
*.sqlite3
|
|
aurum-backup-*.json
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.pyc
|
|
.venv/
|
|
*.egg-info/
|
|
.pytest_cache/
|
|
|
|
# Node / frontend
|
|
node_modules/
|
|
dist/
|
|
.vite/
|
|
|
|
# Playwright (e2e/) run artifacts
|
|
/e2e/test-results/
|
|
/e2e/playwright-report/
|
|
/e2e/.playwright/
|
|
|
|
# Editors / OS / local tooling
|
|
.DS_Store
|
|
.idea/
|
|
.vscode/
|
|
.claude/
|
|
|
|
# Postgres local volume (if bind-mounted during development)
|
|
pgdata/
|
|
|
|
# Other
|
|
UPDATES.md |