Skip to content

Commit

Permalink
chore: rebuild project due to codegen change (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 18, 2024
1 parent 8ecd22f commit 66d114e
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 402 deletions.
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

0 comments on commit 66d114e

Please sign in to comment.