Skip to content

Commit 5a9b478

Browse files
fix test
1 parent 038114b commit 5a9b478

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/tests/MinimalApi.Tests/ReadRetrieveReadChatServiceTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public async Task NorthwindHealthQuestionTest_TextOnlyAsync()
6969
// - has correct answer
7070
// - has has correct format for source reference.
7171

72-
response.DataPoints?.Count().Should().Be(2);
73-
response.Answer.Should().NotBeNullOrEmpty();
74-
response.CitationBaseUrl.Should().Be("https://northwindhealth.blob.core.windows.net/northwindhealth");
72+
response.Choices.First().Context.DataPoints.Text?.Count().Should().Be(2);
73+
response.Choices.First().Message.Content.Should().NotBeNullOrEmpty();
74+
response.Choices.First().CitationBaseUrl.Should().Be("https://northwindhealth.blob.core.windows.net/northwindhealth");
7575
}
7676

7777
[EnvironmentVariablesFact(
@@ -129,8 +129,8 @@ public async Task FinancialReportTestAsync()
129129
// - has correct answer
130130
// - has has correct format for source reference.
131131

132-
response.DataPoints?.Count().Should().Be(0);
133-
response.Images?.Count().Should().Be(2);
134-
response.Answer.Should().NotBeNullOrEmpty();
132+
response.Choices.First().Context.DataPoints.Text?.Count().Should().Be(0);
133+
response.Choices.First().Context.DataPointsImages?.Count().Should().Be(2);
134+
response.Choices.First().Message.Content.Should().NotBeNullOrEmpty();
135135
}
136136
}

0 commit comments

Comments
 (0)