Skip to content

Commit

Permalink
Update ballerina/tests/test.bal
Browse files Browse the repository at this point in the history
Co-authored-by: Ayesh Almeida <[email protected]>
  • Loading branch information
KATTA-00 and ayeshLK authored Aug 12, 2024
1 parent a31cb1f commit 208328d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ballerina/tests/test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,8 @@ function dataGen() returns TestData[][] {
dataProvider: dataGen
}
isolated function testListModels(TestData testData) returns error? {

ListModelsResponse modelsResponse = check openaiFinetunes->/models.get();

testData.modelId = "gpt-3.5-turbo";

test:assertEquals(modelsResponse.'object, "list", "Object type mismatched");
test:assertTrue(modelsResponse.hasKey("data"), "Response does not have the key 'data'");
}
Expand Down

0 comments on commit 208328d

Please sign in to comment.