Skip to content

Commit

Permalink
Add test for manuscript edition extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
wrznr committed Jul 23, 2019
1 parent 3ac974c commit f35825c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_mets.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ def test_data_assignment(subtests, datadir):

with subtests.test("Check place(s)"):
assert(mets.get_places() == [{'text': 'Barby'}, {'text': 'Leipzig'}])

with subtests.test("Check manuscript edition"):
assert(mets.get_edition() == '3. Aufl.')
1 change: 1 addition & 0 deletions tests/test_mets/test_mets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ ein Führer für Reisende; mit Kartenbeilagen und Illustrationen in Holzschnitt
<mods:dateOther encoding="w3cdtf" type="order">1789</mods:dateOther>
<mods:publisher>Brüdergemeinen</mods:publisher>
<mods:publisher>Kummer</mods:publisher>
<mods:edition>3. Aufl.</mods:edition>
</mods:originInfo>
<mods:name type="personal">
<mods:role>
Expand Down

0 comments on commit f35825c

Please sign in to comment.