mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
all test pass
This commit is contained in:
parent
3cd84ab396
commit
dc6934be43
5 changed files with 61 additions and 12 deletions
|
|
@ -5,7 +5,7 @@ import datetime
|
|||
from pelican import readers
|
||||
|
||||
CUR_DIR = os.path.dirname(__file__)
|
||||
CONTENT_PATH = os.path.join(CUR_DIR, '..', '..', 'samples', 'content')
|
||||
CONTENT_PATH = os.path.join(CUR_DIR, 'content')
|
||||
|
||||
def _filename(*args):
|
||||
return os.path.join(CONTENT_PATH, *args)
|
||||
|
|
@ -13,9 +13,9 @@ def _filename(*args):
|
|||
|
||||
class RstReaderTest(unittest2.TestCase):
|
||||
|
||||
def test_metadata(self):
|
||||
def test_article_with_metadata(self):
|
||||
reader = readers.RstReader()
|
||||
content, metadata = reader.read(_filename('super_article.rst'))
|
||||
content, metadata = reader.read(_filename('article_with_metadata.rst'))
|
||||
expected = {
|
||||
'category': 'yeah',
|
||||
'author': u'Alexis Métaireau',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue