feat: Full test suite and linter - fixed test failures and increased coverage to 61.1%
This commit is contained in:
@@ -584,8 +584,8 @@ func TestHandlerRouteSearchIntegration(t *testing.T) {
|
||||
// Replace the router with our test graph
|
||||
h.Router = graph
|
||||
|
||||
// Create request: from city c1 (Moscow) to city c1 (same city code)
|
||||
req := httptest.NewRequest("POST", "/v1/routes/search", strings.NewReader(`{"from_city_id": "c1", "to_city_id": "c1", "date": "2026-08-15"}`))
|
||||
// Create request: from station s1 (Moscow) to station s3 (Vladimir)
|
||||
req := httptest.NewRequest("POST", "/v1/routes/search", strings.NewReader(`{"from_city_id": "s1", "to_city_id": "s3", "date": "2026-08-15"}`))
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
|
||||
rr := httptest.NewRecorder()
|
||||
|
||||
Reference in New Issue
Block a user