From 4ded0c9ef6762d5a2979277fcd37c62d27e1a76e Mon Sep 17 00:00:00 2001 From: Oliver Marks Date: Tue, 16 Oct 2018 22:06:37 +0100 Subject: [PATCH] Fix tests caused by new nodes --- examples/raw/output.py | 1 + tests/test_document_functions.py | 2 +- tests/test_documents.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/raw/output.py b/examples/raw/output.py index 21be6e9..2920e29 100644 --- a/examples/raw/output.py +++ b/examples/raw/output.py @@ -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) diff --git a/tests/test_document_functions.py b/tests/test_document_functions.py index 3b400b4..dd97137 100644 --- a/tests/test_document_functions.py +++ b/tests/test_document_functions.py @@ -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: diff --git a/tests/test_documents.py b/tests/test_documents.py index e53d8bf..ccfb6ff 100755 --- a/tests/test_documents.py +++ b/tests/test_documents.py @@ -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