https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42404

--- Comment #52 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 209371
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209371&action=edit
Bug 42404: (follow-up) Add more BatchImportCoverImages tests

This patch adds tests for parts of the mapping file handling that were
not covered:

- idlink.txt takes precedence over datalink.txt in the same directory
- quoted, comma delimited lines with CRLF line endings
- mapping files in subdirectories
- directories starting with '_' or '.' (e.g. __MACOSX) are skipped

It also tests that a failure storing one image is reported and logged
without failing the whole job.

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Koha/BackgroundJob/BatchImportCoverImages.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Assisted-by: Opus 5.5 (Anthropic)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to