From 1ac200a65bd4ed444d6e8cf78ff6262944f0579c Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Sun, 9 Feb 2025 14:40:01 -0600 Subject: [PATCH] fix: tests --- .github/workflows/pull_request.yml | 2 +- src/AltGen.API.Tests/Integration/GenerateEndpointTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1560cc0..62fcb54 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -52,5 +52,5 @@ jobs: - name: Build project run: dotnet build --no-restore - name: Test project - run: dotnet test + run: dotnet test --filter FullyQualifiedName!~PromptEvaluation diff --git a/src/AltGen.API.Tests/Integration/GenerateEndpointTests.cs b/src/AltGen.API.Tests/Integration/GenerateEndpointTests.cs index e65aac4..c78c603 100644 --- a/src/AltGen.API.Tests/Integration/GenerateEndpointTests.cs +++ b/src/AltGen.API.Tests/Integration/GenerateEndpointTests.cs @@ -25,7 +25,7 @@ public class GenerateEndpointTests : IntegrationTest public async Task GenerateEndpoint_WhenCalledWithRequiredParameters_ItShouldReturnOkWithAltText(MultipartFormDataContent content) { 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( "application/json", /*lang=json,strict*/