Skip to content
This repository was archived by the owner on Jan 22, 2020. It is now read-only.

Commit b847129

Browse files
committed
test(hugo-doc): simplify metadata test
1 parent 1cedecc commit b847129

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_hugodoc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class TestHugoDoc(unittest.TestCase):
55

66
def test_header(self):
77
"""
8-
Check that the title, tags and
8+
Check that the title, tags and
99
date are correct.
1010
"""
1111
doc = HugoDoc(title="PageOne")
@@ -24,7 +24,7 @@ def test_meta_data(self):
2424
"""
2525
doc = HugoDoc(title="PageTwo")
2626
doc.meta['foo'] = 'bar'
27-
header_str = '+++\ntitle = "PageTwo"\nfoo = "bar"\n'
27+
header_str = 'foo = "bar"\n'
2828
self.assertIn(header_str, doc.header())
2929

3030
def test_writeline(self):
@@ -36,4 +36,4 @@ def test_writeline(self):
3636
line = u'All original junglist massive'
3737
doc.writeline(line)
3838
self.assertIn(line, doc.getcontents())
39-
39+

0 commit comments

Comments
 (0)