Skip to content
Merged
Show file tree
Hide file tree
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
96 changes: 16 additions & 80 deletions tests/api_resources/test_applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,8 @@ def test_method_generate_content(self, client: Writer) -> None:
inputs=[
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
"value": ["string"],
}
],
)
assert_matches_type(ApplicationGenerateContentResponse, application, path=["response"])
Expand All @@ -45,16 +37,8 @@ def test_raw_response_generate_content(self, client: Writer) -> None:
inputs=[
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
"value": ["string"],
}
],
)

Expand All @@ -70,16 +54,8 @@ def test_streaming_response_generate_content(self, client: Writer) -> None:
inputs=[
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
"value": ["string"],
}
],
) as response:
assert not response.is_closed
Expand All @@ -98,16 +74,8 @@ def test_path_params_generate_content(self, client: Writer) -> None:
inputs=[
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
"value": ["string"],
}
],
)

Expand All @@ -122,16 +90,8 @@ async def test_method_generate_content(self, async_client: AsyncWriter) -> None:
inputs=[
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
"value": ["string"],
}
],
)
assert_matches_type(ApplicationGenerateContentResponse, application, path=["response"])
Expand All @@ -143,16 +103,8 @@ async def test_raw_response_generate_content(self, async_client: AsyncWriter) ->
inputs=[
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
"value": ["string"],
}
],
)

Expand All @@ -168,16 +120,8 @@ async def test_streaming_response_generate_content(self, async_client: AsyncWrit
inputs=[
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
"value": ["string"],
}
],
) as response:
assert not response.is_closed
Expand All @@ -196,15 +140,7 @@ async def test_path_params_generate_content(self, async_client: AsyncWriter) ->
inputs=[
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
{
"id": "id",
"value": ["string", "string", "string"],
},
"value": ["string"],
}
],
)
Loading