main
py 15 lines 610 Bytes
Raw
1 """Tests for About page content."""
2
3 from __future__ import annotations
4
5 from pathlib import Path
6
7 REPO_ROOT = Path(__file__).resolve().parent.parent
8
9
10 def test_about_page_includes_claracle_image() -> None:
11 """About page should link the full Claracle image to Spotify near the top."""
12 about = (REPO_ROOT / "content" / "about" / "_index.md").read_text(encoding="utf-8")
13 linked_image = "[![Claracle visual identity](/images/claracle.jpeg)](https://open.spotify.com/show/033xdn5nDMoCWxB3bss2dB)"
14 assert linked_image in about
15 assert about.index(linked_image) < about.index("Claracle surfaces")