From 2521ba61b629617308d223ba861f8d30ce54f9dd Mon Sep 17 00:00:00 2001 From: Deeman Date: Sun, 22 Feb 2026 10:48:43 +0100 Subject: [PATCH] fix(test): correct article slug in test_article_url_and_title Article slug is template_slug + city_slug ("city-cost-miami"), not just the city slug ("miami"). Co-Authored-By: Claude Sonnet 4.6 --- web/tests/test_content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/tests/test_content.py b/web/tests/test_content.py index 0460353..944bfc5 100644 --- a/web/tests/test_content.py +++ b/web/tests/test_content.py @@ -446,7 +446,7 @@ class TestGenerationPipeline: ) await _generate_from_template(dict(template), date(2026, 3, 1), 10) - miami = await fetch_one("SELECT * FROM articles WHERE slug = 'miami'") + miami = await fetch_one("SELECT * FROM articles WHERE slug = 'city-cost-miami'") assert miami is not None assert miami["url_path"] == "/padel-court-cost-miami" assert miami["title"] == "Padel Center Cost in Miami"