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

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

Build:
Build:
LAST BUILD BRANCH: wfp_library
DEFAULT BRANCH: main
Repo Added 16 Oct 2017 07:43AM UTC
Files 6
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

LAST BUILD ON BRANCH wfp_library
branch: wfp_library
CHANGE BRANCH
x
Reset
  • wfp_library
  • UseOCHA
  • add-formal
  • add_iso_to_fuzzy_dont
  • add_scope
  • admin_dataset
  • admininfo
  • adminlevel_countries
  • adminlevel_nohxl
  • bay_som_fix
  • better_clean
  • blank_adm_name
  • bug-77-country-simplification-errors
  • cache_date_int
  • call_normalisation_once
  • correct-names
  • databridges_9
  • dependabot/pip/pip-512858e340
  • dependabot/uv/uv-0607343f70
  • divoire
  • false_positives
  • fts_to_hpctools
  • get_currency_info
  • hapi_clean
  • hapi_retrieve_fix
  • hatch
  • historic_cache
  • include_unofficial
  • income_level
  • live_data_update
  • load_pcode_formats_from_libhxl_dataset
  • log_name_mappings
  • main
  • main_to_load_pcode
  • no_phonetics
  • no_wfp_python_lib
  • parent_name_mapping
  • path_aware
  • pcode_formats
  • pcode_parent
  • rapidfuzz
  • remove_hxl
  • revert_changes
  • save_use_saved
  • simplify_countryname_fix
  • taxonomy_changes
  • wfp_fx
  • yahoo_api_fix

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

Relevant lines Covered
Build:
Build:
1288 RELEVANT LINES 1235 COVERED LINES
0.96 HITS PER LINE
Source Files on wfp_library
  • Tree
  • List 6
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
29473106852 wfp_library 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... push 16 Jul 2026 05:10AM UTC mcarans github
95.89
29469520518 wfp_library Fix test push 16 Jul 2026 03:41AM UTC mcarans github
96.18
See All Builds (527)
  • Repo on GitHub
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