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

OCHA-DAP / hdx-python-country / 29473106852
96%
main: 97%

Build:
Build:
LAST BUILD BRANCH: wfp_library
DEFAULT BRANCH: main
Ran 16 Jul 2026 05:10AM UTC
Jobs 1
Files 6
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

16 Jul 2026 05:08AM UTC coverage: 95.885% (-0.3%) from 96.178%
29473106852

push

github

mcarans
Fix TypeError saving WFP API responses containing datetime fields

_call() saved raw model dicts via hdx.utilities.saver.save_json,
which has no hook for non-JSON-native types. Model to_dict()
implementations call pydantic's model_dump() (not mode="json"),
so datetime fields (e.g. createDate) are left as native datetime
objects and json.dump() rejects them. Serialize the dict directly
with a default= handler that converts datetime/date to ISO strings.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

3 of 8 new or added lines in 1 file covered. (37.5%)

1 existing line in 1 file now uncovered.

1235 of 1288 relevant lines covered (95.89%)

0.96 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
75.22
-2.35% src/hdx/location/wfp_api.py

Coverage Regressions

Lines Coverage ∆ File
1
75.22
-2.35% src/hdx/location/wfp_api.py
Jobs
ID Job ID Ran Files Coverage
1 tests - 29473106852.1 16 Jul 2026 05:10AM UTC 6
95.89
GitHub Action Run
Source Files on build 29473106852
  • Tree
  • List 6
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29473106852
  • 101acffc on github
  • Prev Build on wfp_library (#29469520518)
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