fix: tests

This commit is contained in:
Stevan Freeborn
2025-02-09 14:40:01 -06:00
parent e6ee090b05
commit 1ac200a65b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -52,5 +52,5 @@ jobs:
- name: Build project - name: Build project
run: dotnet build --no-restore run: dotnet build --no-restore
- name: Test project - name: Test project
run: dotnet test run: dotnet test --filter FullyQualifiedName!~PromptEvaluation
@@ -25,7 +25,7 @@ public class GenerateEndpointTests : IntegrationTest
public async Task GenerateEndpoint_WhenCalledWithRequiredParameters_ItShouldReturnOkWithAltText(MultipartFormDataContent content) public async Task GenerateEndpoint_WhenCalledWithRequiredParameters_ItShouldReturnOkWithAltText(MultipartFormDataContent content)
{ {
MockGeminiServiceHandler MockGeminiServiceHandler
.When(HttpMethod.Post, "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent/?key=ProviderKey") .When(HttpMethod.Post, "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent/?key=ProviderKey")
.Respond( .Respond(
"application/json", "application/json",
/*lang=json,strict*/ /*lang=json,strict*/