vienalatina/apps/board/tests
Pablo Volenski 64b9d3b805
Estado del sistema was lying about the backups
Your screenshot: everything green except «Copias de seguridad — No hay carpeta
de copias. /srv/board/backups no existe.» The folder exists.
`scripts/backup-board.sh` writes to it and `deploy-board.sh` had run it twenty
seconds before that page rendered.

The check read a **host** path from **inside the container**. The compose file
mounts `./data:/data` and nothing else, so `/srv/board/data` is visible as
`/data` and `/srv/board/backups` is visible nowhere; `_backups()` asked for a
path that cannot exist in that filesystem and faithfully reported that it did
not. Mine, and bad in a specific way: a diagnostic page that cries wolf about
backups is a page you learn to scroll past, which is the one habit it exists to
prevent.

The folder is now mounted at `/backups`, **read-only** — that page reports on
these files and must never be able to touch them. `deploy-board.sh` already
syncs the compose file, so the mount arrives with the next deploy and needs
nothing done by hand. A box that has never run a backup still answers truthfully
rather than crashing: Compose creates a missing bind-mount source as an empty
directory, and an empty folder reads as «Ninguna copia de seguridad», which is
the real alarm.

The second panel was accurate and read worse than it was. CONTENT_REPO is
genuinely unset on your server and publishing works, because app.py defaults it
to pablo/vienalatina. The panel now separates "absent and nothing works" from
"absent and defaulted", naming the value in force for the second kind — merging
those two is how a page full of orange teaches somebody to ignore orange. The
value is read back out of `current_app.config` rather than restated, so the page
and the app cannot disagree about it.

633 tests pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-06 14:03:30 +00:00
..
__init__.py Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00
conftest.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_auth.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
test_board.py The bar, the share card, the writing box and subpages 2026-10-02 15:21:35 +00:00
test_brand.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
test_content.py A phone can use this site, and the way in is a button 2026-10-03 21:04:13 +00:00
test_deployment.py Hand the mail settings to the container, and rebuild on deploy 2026-09-25 18:42:39 +00:00
test_events.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_invites.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_members.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_messages.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_migrations.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_navigation.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
test_profiles.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_reactions.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_submissions.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_templates.py A phone can use this site, and the way in is a button 2026-10-03 21:04:13 +00:00
test_tools.py Estado del sistema was lying about the backups 2026-10-06 14:03:30 +00:00
test_uploads.py Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00