Skip to content

[DEV] repair failing unit tests - #299

Merged
treee111 merged 2 commits into
developfrom
fix-unittests
Aug 20, 2026
Merged

[DEV] repair failing unit tests#299
treee111 merged 2 commits into
developfrom
fix-unittests

Conversation

@treee111

Copy link
Copy Markdown
Owner

Summary

  • Fix -hd flag ambiguity in hdd-mode tests: Adding -hdd in PR [FEAT] Add GUI & CLI switch for mapwriter hdd mode #280 made the short form -hd ambiguous with -h (help), causing argparse to reject it. Changed the test to use the full -hdd flag.
  • Update Germany border country expected data for Czech Republic sub-regions: Geofabrik split czech-republic into regional sub-divisions. The 6 sub-regions that border Germany now appear individually in the geofabrik data instead of the single czech-republic entry.

Czech Republic region breakdown

Geofabrik divided the Czech Republic into 14 regional sub-divisions (visible at https://download.geofabrik.de/europe/czech-republic.html). The 6 sub-regions that are border countries of Germany are:

Sub-region Czech name
jihocesky Jihočeský kraj (South Bohemia)
karlovarsky Karlovarský kraj (Karlovy Vary)
liberecky Liberecký kraj (Liberec)
plzensky Plzeňský kraj (Pilsen)
stredocesky Středočeský kraj (Central Bohemia)
ustecky Ústecký kraj (Ústí nad Labem)

Any user whose geofabrik.json was downloaded after Geofabrik made this split would encounter the test_calc_border_countries_input_country failure — the live data no longer matches the old hardcoded expected value.

Test plan

  • All 63 unit tests pass (conda run -n gdal-dev python -m unittest discover -s tests -v)

🤖 Generated with Claude Code

treee111 and others added 2 commits August 20, 2026 13:27
Adding -hdd (PR #280) made the short form -hd ambiguous with -h,
causing argparse to reject it. Use the full flag name in the test.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Geofabrik split czech-republic into regional sub-divisions. Replace the
single 'czech-republic' entry with the 6 sub-regions that border Germany:
jihocesky, karlovarsky, liberecky, plzensky, stredocesky, ustecky.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@treee111 treee111 changed the title fix: repair failing unit tests [DEV] repair failing unit tests Aug 20, 2026
@treee111
treee111 merged commit 2b78290 into develop Aug 20, 2026
2 checks passed
@treee111
treee111 deleted the fix-unittests branch August 20, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant