From 9e07e2e100f645ce5cb35897b3501c4c3f528adb Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Fri, 1 Jul 2022 12:45:13 +0200 Subject: [PATCH] fixed test_article this test was missing the test for the mandatory date attribute --- tests/test_templates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_templates.py b/tests/test_templates.py index c0377f0..e420891 100644 --- a/tests/test_templates.py +++ b/tests/test_templates.py @@ -15,10 +15,12 @@ def test_article(article_template): ctx = { 'content': 'this is the content', 'title': 'this is the title', + 'date': datetime.datetime(1980, 5, 9), } result = article_template.render(ctx) assert 'this is the content' in result assert 'this is the title' in result + assert '1980-05-09' in result def test_archive(archive_template):