1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 12:42:41 +00:00

fixed test_article

this test was missing the test for the mandatory date attribute
This commit is contained in:
Bastian Venthur
2022-07-01 12:45:13 +02:00
parent 10bac5531f
commit 9e07e2e100

View File

@@ -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):