vienalatina/apps/board/tests
Claude ff8effaf3a
Fix a build break I shipped in the last commit
`{{ partial "t.html" (dict "key" "by" "lang" .Site.Language.Lang) }}`
inside `{{ with .Params.author }}`, where the dot is the author *string*.
`.Site` on a string is an execution error, so the build fails — and with
--panicOnWarning in the pipeline, the whole publish fails with it. Same
again for `faq`, where the dot is a slice.

It would have gone red on your first deploy: Salvador's post carries an
author.

My build check passed because every post in the fixture had neither an
author nor a faq, so the two broken branches were never rendered. That
is the actual mistake — not the dot, which is an easy slip, but checking
a change to an optional branch with content that never takes it. The
fixture now carries a post with author, author_url, faq, event, image,
ai_generated and pinned all set at once.

The rule is now "always `$.`" rather than "think about where you are":
`$` is the page in every context, a bare `.` is only the page at top
level, and the difference is invisible until a post happens to have the
field. All sixteen call sites converted, and a test holds every one of
them to it — proved by putting the bug back and watching it fail.

Also the doc comment in t.html, which still claimed eleven keys. My
replacement for it last commit silently matched nothing: I asserted on
every other replacement in that script and not on this one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-14 13:19:08 +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
serialize_harness.js The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +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 Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +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 Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +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_editor.py The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +00:00
test_events.py The calendar is a month again, at every width 2026-10-13 18:05:31 +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 Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +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_strings.py Fix a build break I shipped in the last commit 2026-10-14 13:19:08 +00:00
test_submissions.py A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
test_templates.py The public agenda is a month too, and it has a year ahead 2026-10-14 10:52:12 +00:00
test_tools.py Textos: the words are data now, starting with the navigation 2026-10-14 12:35:10 +00:00
test_uploads.py Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00