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

Ouranosinc / xclim / 15471792852 / 3
92%
main: 92%

Build:
DEFAULT BRANCH: main
Ran 05 Jun 2025 04:11PM UTC
Files 59
Run time 6s
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: 88.885% (+0.04%) from 88.848%
15471792852.3

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

7317 of 8232 relevant lines covered (88.88%)

0.89 hits per line

Source Files on job run-3.11-ubuntu-latest-standard - 15471792852.3
  • Tree
  • List 59
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 15471792852
  • 1e250a68 on github
  • Prev Job for on main (#15421224749.1)
  • Next Job for on main (#15495003246.8)
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