Fix tests caused by new nodes

This commit is contained in:
Oliver Marks 2018-10-16 22:06:37 +01:00
parent 9a628fd957
commit 4ded0c9ef6
3 changed files with 3 additions and 2 deletions

View File

@ -5,5 +5,6 @@ from eorg.parser import parse
with open(os.path.abspath("../../tests/fixtures/test.org"), "r") as fp:
doc = parse(fp)
print(doc.title)
for item in doc.body():
print(item)

View File

@ -6,7 +6,7 @@ from eorg.parser import parse
def test_fetch_attribute():
with open(os.path.abspath("./tests/fixtures/test.org"), "r") as fp:
doc = parse(fp)
assert doc.title.value == ' Emacs org-mode examples'
assert doc.title == ' Emacs org-mode examples'
def test_fetch_non_existant_attribute():
with open(os.path.abspath("./tests/fixtures/test.org"), "r") as fp:

View File

@ -6,4 +6,4 @@ from eorg.parser import parse
def test_basic():
with open(os.path.abspath("./tests/fixtures/test.org"), "r") as fp:
doc = parse(fp)
assert len(doc) == 8
assert len(doc) == 14