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

rero / rero-invenio-thumbnails / 21033126204
95%

Build:
DEFAULT BRANCH: master
Ran 15 Jan 2026 01:33PM 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 01:33PM UTC coverage: 89.427% (+0.7%) from 88.739%
21033126204

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>

203 of 227 new or added lines in 11 files covered. (89.43%)

203 of 227 relevant lines covered (89.43%)

0.89 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.45
0.0% rero_invenio_thumbnails/api.py
1
96.3
3.7% rero_invenio_thumbnails/modules/amazon/api.py
1
95.65
13.04% rero_invenio_thumbnails/modules/google_api/api.py
2
84.62
0.0% rero_invenio_thumbnails/__init__.py
2
93.33
6.67% rero_invenio_thumbnails/modules/google_books/api.py
3
81.25
0.0% rero_invenio_thumbnails/views.py
14
67.44
-8.87% rero_invenio_thumbnails/modules/files/api.py
Jobs
ID Job ID Ran Files Coverage
1 21033126204.1 15 Jan 2026 01:33PM UTC 17
89.43
GitHub Action Run
Source Files on build 21033126204
  • Tree
  • List 17
  • Changed 7
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21033126204
  • ceb0baf8 on github
  • Prev Build on master (#21031250376)
  • Next Build on master (#21034793856)
  • 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