Skip to content

Commit

Permalink
ekirjasto-18 Update tests regarding import log
Browse files Browse the repository at this point in the history
  • Loading branch information
natlibfi-kaisa committed Oct 30, 2024
1 parent 7e3bbce commit cf0331f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/core/test_opds_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ def test_import_one_feed(self, opds_importer_fixture: OPDSImporterFixture):
collection=collection,
)
assert "Utter failure!" in failure.exception

print(failures)
# Both failures were reported in the return value from
# import_one_feed
assert 2 == len(failures)
Expand Down Expand Up @@ -1992,7 +1992,9 @@ def import_one_feed(self, feed):
assert ["last page", "second page", "first page"] == monitor.imports

# Every page of the import had two successes and one failure.
assert "Items imported: 6. Failures: 3." == progress.achievements
assert (
"Items imported: 6. Failures: 3.\nFailed IDs and details:\nISBN: identifier: Failure\nISBN: identifier: Failure\nISBN: identifier: Failure"
) == progress.achievements

# The TimestampData returned by run_once does not include any
# timing information; that's provided by run().
Expand Down

0 comments on commit cf0331f

Please sign in to comment.