Skip to content

feat: add tests for distance tool (geocontext 0.10.x) - #47

Merged
mborne merged 1 commit into
masterfrom
40-distance-tool
Oct 5, 2026
Merged

mborne merged 1 commit into
masterfrom
40-distance-tool

Conversation

@mborne

@mborne mborne commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Closes #40

Changes

Both tests are skipped without GEOCONTEXT_DEV=1.

Results (local geocontext 0.10.x)

Test claude-haiku-4-5 claude-sonnet-4-6
test_tools_discovery ✅ —
test_chaining_geocode_distance ✅ ✅
test_chaining_distance_piscine_caen ❌ ✅

Haiku fails the Caen scenario: it geocodes the "Lux" tram station and picks the first pool found by geocode (Campus 1, 52 min) without searching for the nearest one. See the comment in #38 about the relevance of this test.

🤖 Generated with Claude Code

- reference TOOL_DISTANCE in EXPECTED_TOOLS with GEOCONTEXT_DEV=1
- add test_chaining_geocode_distance (Gare de Lyon -> Eiffel Tower on foot)
- add test_chaining_distance_piscine_caen (scenario from ignfab/geocontext#207)
- document both tests in README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mborne

mborne commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

(@esgn / @LionelZoubritzky-IGN : I will auto-merge to save time. We will be able to fix / refactor in case of problems)

@mborne
mborne merged commit 368199b into master Oct 5, 2026
2 checks passed
@LionelZoubritzky-IGN
LionelZoubritzky-IGN deleted the 40-distance-tool branch October 6, 2026 07:10
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.

Test E2E - add tests for the distance tool (0.10.x)

1 participant