• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rero / rero-invenio-thumbnails / 21039705865
95%

Build:
DEFAULT BRANCH: master
Ran 15 Jan 2026 05:07PM UTC
Jobs 1
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jan 2026 05:06PM UTC coverage: 82.972% (+0.05%) from 82.919%
21039705865

push

github

rerowep
feat(initial): initial commit - RERO Invenio Thumbnails module

Complete implementation of a multi-provider thumbnail retrieval system for RERO Invenio.

Implemented Features:
- Multi-provider architecture with chainable providers (Amazon, Google Books, Google API, Open Library, Files)
- Local file storage provider (FilesProvider) with configurable directory
- HTTP endpoint for serving thumbnails via Flask blueprint
- Comprehensive provider implementations with exception handling
- Full test suite with 50+ test cases across all providers
- Proper Invenio extension initialization and configuration
- Retry logic with exponential backoff for HTTP requests

Providers:
- AmazonProvider: ISBN-13 to ISBN-10 conversion, 14 country codes, 5 image sizes
- GoogleApiProvider: Query Google Books API by ISBN
- GoogleBooksProvider: JSONP-based Google Books preview endpoint
- OpenLibraryProvider: Open Library Covers API integration
- FilesProvider: Local file storage with .jpg/.jpeg/.png support

Configuration:
- RERO_INVENIO_THUMBNAILS_PROVIDERS: List of active providers
- RERO_INVENIO_THUMBNAILS_FILES_DIR: Local directory for thumbnails
- RERO_INVENIO_THUMBNAILS_CACHE: Redis cache configuration

Testing:
- Comprehensive test coverage for all providers
- HTTP endpoint testing with real file operations
- API function testing with mocked providers
- Shared pytest fixtures in conftest.py

Co-Authored-by: Peter Weber <peter.weber@rero.ch>

268 of 323 new or added lines in 11 files covered. (82.97%)

268 of 323 relevant lines covered (82.97%)

0.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.0
0.0% rero_invenio_thumbnails/api.py
1
96.3
0.0% rero_invenio_thumbnails/modules/amazon/api.py
1
95.65
0.0% rero_invenio_thumbnails/modules/google_api/api.py
2
84.62
0.0% rero_invenio_thumbnails/__init__.py
2
93.33
0.0% rero_invenio_thumbnails/modules/google_books/api.py
4
87.5
0.0% rero_invenio_thumbnails/modules/files/api.py
44
63.64
0.3% rero_invenio_thumbnails/views.py
Jobs
ID Job ID Ran Files Coverage
1 21039705865.1 15 Jan 2026 05:07PM UTC 17
82.97
GitHub Action Run
Source Files on build 21039705865
  • Tree
  • List 17
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21039705865
  • cea9312c on github
  • Prev Build on master (#21039510761)
  • Next Build on master (#21040159242)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc