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>
4 files changed,
+26
−1
.gitignore+1 −0internal/slides/credits_test.go+1 −1internal/slidestest/fontlink_test.go+24 −0scripts/__pycache__/credits.cpython-314.pycbinary
CI passed — run details
diff --git a/.gitignore b/.gitignore| index 929b033..85b5934 100644 |
| --- a/.gitignore |
| +++ b/.gitignore |
| @@ -17,3 +17,4 @@ |
| /.superpowers/ |
| /.bash_profile |
| /.bashrc |
| +__pycache__/ |
diff --git a/internal/slides/credits_test.go b/internal/slides/credits_test.go| index 5ab9012..cd9623c 100644 |
| --- a/internal/slides/credits_test.go |
| +++ b/internal/slides/credits_test.go |
| @@ -27,7 +27,7 @@ func TestCreditsPublicRouteAndLockedNotices(t *testing.T) { |
| if response.Header().Get("Cache-Control") != "no-store" || response.Header().Get("Referrer-Policy") != "strict-origin" { |
| t.Fatal("credits must preserve the origin for the chained Home sign-out") |
| } |
| - for _, want := range []string{"Open source", "Lucide and Feather", "krilla", "yjs", "Liberation Fonts", "Rust standard library", "No notice file is included in this release.", "/static/credits.css"} { |
| + for _, want := range []string{"Open source", "Lucide and Feather", "Onest", "krilla", "yjs", "Liberation Fonts", "Rust standard library", "No notice file is included in this release.", "/static/credits.css"} { |
| if !strings.Contains(response.Body.String(), want) { |
| t.Fatal("missing attribution", want) |
| } |
diff --git a/internal/slidestest/fontlink_test.go b/internal/slidestest/fontlink_test.go| new file mode 100644 |
| index 0000000..633db53 |
| --- /dev/null |
| +++ b/internal/slidestest/fontlink_test.go |
| @@ -0,0 +1,24 @@ |
| +package slidestest |
| + |
| +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("..", "slides", "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) |
| + } |
| +} |
diff --git a/scripts/__pycache__/credits.cpython-314.pyc b/scripts/__pycache__/credits.cpython-314.pyc| deleted file mode 100644 |
| index b3260ae..0000000 |
| Binary files a/scripts/__pycache__/credits.cpython-314.pyc and /dev/null differ |