Skip to content

chore(tests): improve enum examples #2286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/api_resources/test_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_method_create_variation_with_all_params(self, client: OpenAI) -> None:
model="dall-e-2",
n=1,
response_format="url",
size="256x256",
size="1024x1024",
user="user-1234",
)
assert_matches_type(ImagesResponse, image, path=["response"])
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_method_edit_with_all_params(self, client: OpenAI) -> None:
model="dall-e-2",
n=1,
response_format="url",
size="256x256",
size="1024x1024",
user="user-1234",
)
assert_matches_type(ImagesResponse, image, path=["response"])
Expand Down Expand Up @@ -123,7 +123,7 @@ def test_method_generate_with_all_params(self, client: OpenAI) -> None:
n=1,
quality="standard",
response_format="url",
size="256x256",
size="1024x1024",
style="vivid",
user="user-1234",
)
Expand Down Expand Up @@ -171,7 +171,7 @@ async def test_method_create_variation_with_all_params(self, async_client: Async
model="dall-e-2",
n=1,
response_format="url",
size="256x256",
size="1024x1024",
user="user-1234",
)
assert_matches_type(ImagesResponse, image, path=["response"])
Expand Down Expand Up @@ -217,7 +217,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncOpenAI) -> N
model="dall-e-2",
n=1,
response_format="url",
size="256x256",
size="1024x1024",
user="user-1234",
)
assert_matches_type(ImagesResponse, image, path=["response"])
Expand Down Expand Up @@ -263,7 +263,7 @@ async def test_method_generate_with_all_params(self, async_client: AsyncOpenAI)
n=1,
quality="standard",
response_format="url",
size="256x256",
size="1024x1024",
style="vivid",
user="user-1234",
)
Expand Down