oficina / meet Public

Answer the review (Claude Fable 5.1)

- A test pins the layout's Onest link to estilo's versioned prefix (not
  needed where an equivalent already exists).
- Slides: the credits page test expects Onest; a committed .pyc removed
  and __pycache__/ ignored. Calendar, Memoria: "'s" in writetheme's
  comment. Fichas: estilo is a direct requirement (go mod tidy).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 850b5a780cb1b24134de24662785457b193736c4 parent a9e1178
1 file changed, +24 −0
  • internal/callstest/fontlink_test.go +24 −0

CI passed — run details

diff --git a/internal/callstest/fontlink_test.go b/internal/callstest/fontlink_test.go
new file mode 100644
index 0000000..358bb10
--- /dev/null
+++ b/internal/callstest/fontlink_test.go
@@ -0,0 +1,24 @@
+package callstest
+
+import (
+ "bytes"
+ "os"
+ "path/filepath"
+ "testing"
+
+ "amadan.net/oficina/estilo.git/theme"
+)
+
+// The layout names Onest's stylesheet by a literal path; this keeps that
+// literal equal to estilo's versioned prefix, so an estilo font move
+// fails here rather than every page quietly falling back to the system
+// face.
+func TestLayoutLinksEstilosFonts(t *testing.T) {
+ layout, err := os.ReadFile(filepath.Join("..", "calls", "templates", "layout.html"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if want := `href="` + theme.FontPrefix + `fonts.css"`; !bytes.Contains(layout, []byte(want)) {
+ t.Errorf("layout.html does not link %s", want)
+ }
+}