Add stub-based test for backup and restore scripts

Runs backup.sh/restore.sh against a logging docker stub and checks
archive content, retention, data flow, .env recovery and the order of
stopping/starting the app.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Kyle Dammann
2026-10-30 22:03:31 +01:00
co-authored by Claude Opus 5.5
parent aec254518c
commit 74e11845de
2 changed files with 51 additions and 0 deletions
+1
View File
@@ -54,6 +54,7 @@ no JS build step: plain forms with small progressive enhancements in `static/js/
# Local (Windows dev box: venv lives at C:\Users\kyled\.venvs\kochbuch due to path-length issues)
python -m pytest # tests (SQLite)
python -m ruff check . # lint (config in pyproject.toml)
sh tests/shell/test_backup_restore.sh # backup/restore logic with a docker stub
# Postgres without Docker (dev box): pip install pgserver; start it, then
# POSTGRES_HOST=127.0.0.1 POSTGRES_PORT=<port> POSTGRES_USER=postgres POSTGRES_DB=postgres python -m pytest
# (the Windows pgserver build lacks tz data: copy tzdata/zoneinfo to pginstall/share/postgresql/timezone)