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