Skip to content

Commit eebd001

Browse files
fix(tests): correct distance API test assertion for origin ID
The API does not return origin ID for GET /distance requests, only destination IDs. Updated test to verify destination IDs instead.
1 parent dc09215 commit eebd001

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e/test_distance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def test_distance_with_ids(self, client):
7474
)
7575

7676
assert isinstance(response, DistanceResponse)
77-
assert response.origin.id == "white_house"
78-
# IDs in destinations are optional in response
77+
assert response.destinations[0].id == "monument"
78+
assert response.destinations[1].id == "capitol"
7979

8080
def test_distance_driving_mode(self, client):
8181
"""Test distance with driving mode returns duration."""

0 commit comments

Comments
 (0)