@@ -283,6 +283,7 @@ def test_build_creates_category_pages_with_metadata_and_links(self, tmp_path):
283283 assert parser .links_by_rel ["canonical" ] == "https://awesome-python.com/categories/widgets/"
284284 assert parser .meta_by_property ["og:url" ] == "https://awesome-python.com/categories/widgets/"
285285 assert '<link rel="alternate" type="text/plain" href="/llms.txt" title="LLMs text entry point" />' not in category_html
286+ assert '<a href="/sponsorship/" class="hero-topbar-link">Sponsorship</a>' in category_html
286287 assert "<h1>Widgets</h1>" in category_html
287288 assert 'Widget libraries. Also see <a href="https://example.com/widgets" target="_blank" rel="noopener">awesome-widgets</a>.' in category_html
288289 assert 'href="https://example.com/w1"' in category_html
@@ -481,6 +482,7 @@ def test_index_contains_aligned_homepage_metadata(self, tmp_path):
481482 assert parser .meta_by_name ["twitter:description" ] == expected_description
482483 assert parser .meta_by_name ["twitter:image" ] == expected_image
483484 assert "<head>\n <meta charset" in html
485+ assert '<a href="/sponsorship/" class="hero-topbar-link">Sponsorship</a>' in html
484486 assert 'id="hero-category-heading">Browse by category</h2>' in html
485487 assert 'class="hero-category-link" href="/categories/ai-and-agents/"' in html
486488
@@ -750,6 +752,7 @@ def test_sponsorship_page_contains_json_ld(self, tmp_path):
750752 "Sponsorship for awesome-python: tiers, audience, and how to get your product in front of professional Python developers evaluating tools for production use."
751753 )
752754 assert parser .links_by_rel ["canonical" ] == "https://awesome-python.com/sponsorship/"
755+ assert '<a href="/sponsorship/" class="hero-topbar-link">Sponsorship</a>' in html
753756
754757 marker = '<script type="application/ld+json">'
755758 start = html .index (marker ) + len (marker )
0 commit comments