Update test case for SerpAPIProvider to reflect new query and expected result

- Changed the query in the `TestSerpAPIProviderWithAssistantConfig` from "Yao App Engine" to "golang programming language" to align with updated test expectations.
- Updated the expected result assertion to match the new query, ensuring the test accurately verifies the functionality of the search handler.
This commit is contained in:
Max 2025-12-19 19:48:00 +08:00
parent 8dcb78fc37
commit 493f9dbea2

View file

@ -39,7 +39,7 @@ func TestSerpAPIProviderWithAssistantConfig(t *testing.T) {
// Execute search
req := &types.Request{
Query: "Yao App Engine",
Query: "golang programming language",
Type: types.SearchTypeWeb,
Source: types.SourceAuto,
Limit: 5,
@ -51,7 +51,7 @@ func TestSerpAPIProviderWithAssistantConfig(t *testing.T) {
// Verify result structure
assert.Equal(t, types.SearchTypeWeb, result.Type)
assert.Equal(t, "Yao App Engine", result.Query)
assert.Equal(t, "golang programming language", result.Query)
assert.Equal(t, types.SourceAuto, result.Source)
// API key must be valid - search should succeed