aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_parse.py')
-rw-r--r--tests/test_parse.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py
index 832ee78..32d7ea9 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -130,7 +130,7 @@ def test_elementtree() -> None:
def test_example_grobid_tei_xml() -> None:
- with open("tests/files/example_grobid.tei.xml", "r") as f:
+ with open("tests/files/document/example.tei.xml", "r") as f:
blob = f.read()
doc = parse_document_xml(blob)
@@ -232,7 +232,7 @@ def test_single_citations_xml() -> None:
def test_citation_list_xml() -> None:
- with open("tests/files/example_citation_list.xml", "r") as f:
+ with open("tests/files/citation_list/example.tei.xml", "r") as f:
tei_xml = f.read()
citations = parse_citation_list_xml(tei_xml)
@@ -276,7 +276,7 @@ def test_citation_list_xml() -> None:
def test_grobid_070_document() -> None:
# more recent GROBID v0.7.0 output
- with open("tests/files/example_grobid_plos.tei.xml", "r") as f:
+ with open("tests/files/document/plos.tei.xml", "r") as f:
tei_xml = f.read()
doc = parse_document_xml(tei_xml)
@@ -320,10 +320,10 @@ def test_grobid_070_document() -> None:
def test_empty_citations() -> None:
- with open("tests/files/empty_citation_unstructured.tei.xml", "r") as f:
+ with open("tests/files/citation/empty_unstructured.tei.xml", "r") as f:
mostly_empty_xml = f.read()
- with open("tests/files/empty_citation.tei.xml", "r") as f:
+ with open("tests/files/citation/empty.tei.xml", "r") as f:
empty_xml = f.read()
assert parse_citation_xml(empty_xml) is None
@@ -342,9 +342,9 @@ def test_empty_citations() -> None:
def test_citation_emdash() -> None:
- with open("tests/files/citation_emdash.tei.xml", "rb") as f:
+ with open("tests/files/citation/emdash.tei.xml", "rb") as f:
tei_xml_bytes = f.read()
- with open("tests/files/citation_emdash.tei.xml", "r") as f2:
+ with open("tests/files/citation/emdash.tei.xml", "r") as f2:
tei_xml_str = f2.read()
# that dash is a unicode emdash
@@ -367,9 +367,9 @@ def test_citation_emdash() -> None:
def test_citation_list_utf8() -> None:
- with open("tests/files/citation_list_emdash.tei.xml", "rb") as f:
+ with open("tests/files/citation_list/emdash.tei.xml", "rb") as f:
tei_xml_bytes = f.read()
- with open("tests/files/citation_list_emdash.tei.xml", "r") as f2:
+ with open("tests/files/citation_list/emdash.tei.xml", "r") as f2:
tei_xml_str = f2.read()
unstructured = "Goodman, N. (1972). A world of individuals. In Problems and projects (pp. 155–172). Bobs-Merrill company."