fix: tests
This commit is contained in:
@@ -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*/
|
||||||
|
|||||||
Reference in New Issue
Block a user