Skip to content

Commit

Permalink
Update OpenAITests.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Makhnyk committed Nov 17, 2023
1 parent fcccad4 commit 1a08386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/OpenAITests/OpenAITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class OpenAITests: XCTestCase {
func testImageEdit() async throws {
let query = ImageEditsQuery(image: Data(), fileName: "whitecat.png", prompt: "White cat with heterochromia sitting on the kitchen table with a bowl of food", n: 1, size: "1024x1024")
let imagesResult = ImagesResult(created: 100, data: [
.init(url: "http://foo.bar")
.init(url: "http://foo.bar", b64_json: nil)
])
try self.stub(result: imagesResult)
let result = try await openAI.imageEdits(query: query)
Expand All @@ -84,7 +84,7 @@ class OpenAITests: XCTestCase {
func testImageVariation() async throws {
let query = ImageVariationsQuery(image: Data(), fileName: "whitecat.png", n: 1, size: "1024x1024")
let imagesResult = ImagesResult(created: 100, data: [
.init(url: "http://foo.bar")
.init(url: "http://foo.bar", b64_json: nil)
])
try self.stub(result: imagesResult)
let result = try await openAI.imageVariations(query: query)
Expand Down

0 comments on commit 1a08386

Please sign in to comment.