Fix tests caused by new nodes
This commit is contained in:
parent
9a628fd957
commit
4ded0c9ef6
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue