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

Ouranosinc / xclim / 15471792852
92%

Build:
DEFAULT BRANCH: main
Ran 05 Jun 2025 04:07PM UTC
Jobs 8
Files 59
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

05 Jun 2025 04:02PM UTC coverage: 92.323% (+0.04%) from 92.286%
15471792852

push

github

web-flow
Allow pooch to be mocked (#2188)

### What kind of change does this PR introduce?

* Catches a really specific corner case that can affect downstream
projects that rely on mocking of `pooch`.

### Does this PR introduce a breaking change?

No.

### Other information:

OK, this is wild. Let's say we want to install a very minimal amount of
dependencies in order to reduce the memory load on ReadTheDocs; We can
very safely mock most libraries and not need to worry unless one of the
libraries expects to raise a specific error in the normal operation.

If we mock `pooch` here, then the `pooch` call resolves but doesn't
provide the expected data structure needed for `pathlib.Path` and
instead of raising an `AttributeError` (`None` has no attributes), it
raises instead a `TypeError` (the mocked `pooch.os_cache._type` is not a
parsable string or Path).

Relevant Pull Request (`miranda`):
https://github.com/Ouranosinc/miranda/pull/241

0 of 1 new or added line in 1 file covered. (0.0%)

7600 of 8232 relevant lines covered (92.32%)

8.09 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
79.84
1.21% src/xclim/testing/utils.py
Jobs
ID Job ID Ran Files Coverage
1 run-3.11-ubuntu-latest-preliminary - 15471792852.1 05 Jun 2025 04:11PM UTC 59
88.61
GitHub Action Run
2 run-3.12-ubuntu-latest-standard - 15471792852.2 05 Jun 2025 04:11PM UTC 59
88.81
GitHub Action Run
3 run-3.11-ubuntu-latest-standard - 15471792852.3 05 Jun 2025 04:11PM UTC 59
88.88
GitHub Action Run
4 run-3.12-windows-latest-py312-coverage-prefetch - 15471792852.4 05 Jun 2025 04:11PM UTC 59
88.34
GitHub Action Run
5 run-3.11-ubuntu-latest-py311-coverage-extras-sbck-offline-prefetch - 15471792852.5 05 Jun 2025 04:11PM UTC 59
88.75
GitHub Action Run
6 run-{{ matrix.python-version }}-conda - 15471792852.6 05 Jun 2025 04:10PM UTC 58
92.18
GitHub Action Run
7 run-3.10-ubuntu-latest-standard - 15471792852.7 05 Jun 2025 04:11PM UTC 59
88.81
GitHub Action Run
8 run-3.11-macos-latest-py311-coverage-extras-lmoments - 15471792852.8 05 Jun 2025 04:11PM UTC 59
92.12
GitHub Action Run
Source Files on build 15471792852
  • Tree
  • List 59
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1e250a68 on github
  • Prev Build on main (#15421224749)
  • Next Build on main (#15495003246)
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