summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-05 10:18:05 +0200
committerDanilo M. <danix@danix.xyz>2026-05-05 10:18:05 +0200
commit0b192692a3108ca9def1f462aa5bb2489fa87690 (patch)
tree26eeb78e02e836a73969a7e7b7be44951742cc9f /tests
parentc554c8cd4a2b603f4a97f50adf78bc82c5e74d9d (diff)
downloadpublisher-0b192692a3108ca9def1f462aa5bb2489fa87690.tar.gz
publisher-0b192692a3108ca9def1f462aa5bb2489fa87690.zip
fix: use lowercase article types and restore selection in FrontmatterEditor
ARTICLE_TYPES lowercased to match Hugo theme expectations. FrontmatterEditor now matches the existing frontmatter value case-insensitively so the correct type is selected rather than defaulting to the first item. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_models.py b/tests/test_models.py
index 3d83653..29564dc 100644
--- a/tests/test_models.py
+++ b/tests/test_models.py
@@ -4,8 +4,8 @@ from core.models import Article, ARTICLE_TYPES
def test_article_types_contains_five():
assert len(ARTICLE_TYPES) == 5
- assert "Tech" in ARTICLE_TYPES
- assert "Life" in ARTICLE_TYPES
+ assert "tech" in ARTICLE_TYPES
+ assert "life" in ARTICLE_TYPES
def test_article_fields():