forked from github.com/blag
fixed test_article
this test was missing the test for the mandatory date attribute
This commit is contained in:
@@ -15,10 +15,12 @@ def test_article(article_template):
|
|||||||
ctx = {
|
ctx = {
|
||||||
'content': 'this is the content',
|
'content': 'this is the content',
|
||||||
'title': 'this is the title',
|
'title': 'this is the title',
|
||||||
|
'date': datetime.datetime(1980, 5, 9),
|
||||||
}
|
}
|
||||||
result = article_template.render(ctx)
|
result = article_template.render(ctx)
|
||||||
assert 'this is the content' in result
|
assert 'this is the content' in result
|
||||||
assert 'this is the title' in result
|
assert 'this is the title' in result
|
||||||
|
assert '1980-05-09' in result
|
||||||
|
|
||||||
|
|
||||||
def test_archive(archive_template):
|
def test_archive(archive_template):
|
||||||
|
|||||||
Reference in New Issue
Block a user