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.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py
index a818f09..9e903fa 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -456,3 +456,25 @@ def test_citation_bare_editor() -> None:
assert ref.editors
assert len(ref.editors) == 1
assert ref.editors[0].full_name == "Mitchell C"
+
+
+def test_citation_proceedings() -> None:
+ with open("tests/files/citation/citation_proceedings.tei.xml", "r") as f:
+ tei_xml = f.read()
+
+ ref = parse_citation_xml(tei_xml)
+ assert ref
+ assert ref.title == "Sim-to-Real Transfer of Robotic Control with Dynamics Randomization"
+ assert (
+ ref.book_title
+ == "Proceedings - IEEE International Conference on Robotics and Automation"
+ )
+ # TODO: ref.meeting: IEEE International Conference on Robotics and Automation
+ assert ref.publisher is None
+ # <date type="published" when="2018">2018. 2018</date>
+ assert ref.pages == "3803-3810"
+ assert ref.date == "2018"
+ assert ref.authors
+ assert ref.authors[0].given_name == "Marcin"
+ assert ref.authors[3].full_name == "Abbeel"
+ assert ref.editors is None