Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
ehanson8 committed Nov 20, 2023
1 parent 3630024 commit 22d03e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ def test_xmltransformer_iterates_successfully_if_get_optional_fields_returns_non
assert len(output_records.deleted_records) == 1


def test_xmltransformer_parse_source_file_returns_record_iterator():
records = XmlTransformer.parse_source_file(
"tests/fixtures/datacite/datacite_records.xml"
)
assert len(list(records)) == 38


def test_xmltransformer_record_is_deleted_returns_true_if_deleted(caplog):
source_records = parse_xml_records("tests/fixtures/record_deleted.xml")
assert XmlTransformer.record_is_deleted(next(source_records)) is True
Expand Down

0 comments on commit 22d03e5

Please sign in to comment.