mirror of
https://github.com/superdesigndev/treg.git
synced 2026-10-02 03:24:35 +08:00
test(web): assert the playbook's inbound links both ways, and that pages still answer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5196ade450
commit
ceb695b6a9
@@ -52,6 +52,12 @@ async def test_hub_is_linked_from_its_pillars_and_listed(clients: AsyncClient):
|
||||
"/use-cases/lead-enrichment-for-ai-agents", "/workflows"):
|
||||
assert f'href="{PATH}"' in (await clients.get(page)).text, page
|
||||
assert f"{PATH}<" in (await clients.get("/sitemap.xml")).text
|
||||
# Hosted, the bundled pages and llms.txt keep the links with the markers unwrapped.
|
||||
for page in ("/resources", "/people-search", "/leads-signals", "/grokbot", "/fable",
|
||||
"/use-cases/lead-enrichment-for-ai-agents", "/llms.txt"):
|
||||
r = await clients.get(page)
|
||||
assert r.status_code == 200 and "/gtm-engineering" in r.text, page
|
||||
assert "hosted-->" not in r.text, page
|
||||
|
||||
|
||||
async def test_hub_404s_on_a_self_hosted_registry(monkeypatch):
|
||||
@@ -66,8 +72,9 @@ async def test_hub_404s_on_a_self_hosted_registry(monkeypatch):
|
||||
for page in ("/", "/resources", "/people-search", "/leads-signals", "/grokbot", "/fable",
|
||||
"/use-cases/lead-enrichment-for-ai-agents", "/llms.txt"):
|
||||
r = await c.get(page)
|
||||
assert r.status_code == 200, page
|
||||
assert "/gtm-engineering" not in r.text, page
|
||||
assert "<!--hosted-->" not in r.text, page
|
||||
assert "hosted-->" not in r.text, page
|
||||
finally:
|
||||
get_settings.cache_clear()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user