From e81273d758966048b4ed1089a2a929a7b730d838 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 18 Nov 2024 11:13:15 +0000 Subject: [PATCH] chore: rebuild project due to codegen change --- tests/api_resources/test_command.py | 104 +++------------------------- tests/api_resources/test_tools.py | 104 ++-------------------------- 2 files changed, 12 insertions(+), 196 deletions(-) diff --git a/tests/api_resources/test_command.py b/tests/api_resources/test_command.py index 466714d..f24b16d 100644 --- a/tests/api_resources/test_command.py +++ b/tests/api_resources/test_command.py @@ -28,22 +28,14 @@ def test_method_exec(self, client: Riza) -> None: def test_method_exec_with_all_params(self, client: Riza) -> None: command = client.command.exec( code='print("Hello world!")', - allow_http_hosts=["string", "string", "string"], - args=["string", "string", "string"], + allow_http_hosts=["string"], + args=["string"], env={"foo": "string"}, files=[ { "contents": "contents", "path": "path", - }, - { - "contents": "contents", - "path": "path", - }, - { - "contents": "contents", - "path": "path", - }, + } ], http={ "allow": [ @@ -64,43 +56,7 @@ def test_method_exec_with_all_params(self, client: Riza) -> None: }, }, "host": "host", - }, - { - "auth": { - "basic": { - "password": "password", - "user_id": "user_id", - }, - "bearer": {"token": "token"}, - "header": { - "name": "name", - "value": "value", - }, - "query": { - "key": "key", - "value": "value", - }, - }, - "host": "host", - }, - { - "auth": { - "basic": { - "password": "password", - "user_id": "user_id", - }, - "bearer": {"token": "token"}, - "header": { - "name": "name", - "value": "value", - }, - "query": { - "key": "key", - "value": "value", - }, - }, - "host": "host", - }, + } ] }, language="PYTHON", @@ -153,22 +109,14 @@ async def test_method_exec(self, async_client: AsyncRiza) -> None: async def test_method_exec_with_all_params(self, async_client: AsyncRiza) -> None: command = await async_client.command.exec( code='print("Hello world!")', - allow_http_hosts=["string", "string", "string"], - args=["string", "string", "string"], + allow_http_hosts=["string"], + args=["string"], env={"foo": "string"}, files=[ { "contents": "contents", "path": "path", - }, - { - "contents": "contents", - "path": "path", - }, - { - "contents": "contents", - "path": "path", - }, + } ], http={ "allow": [ @@ -189,43 +137,7 @@ async def test_method_exec_with_all_params(self, async_client: AsyncRiza) -> Non }, }, "host": "host", - }, - { - "auth": { - "basic": { - "password": "password", - "user_id": "user_id", - }, - "bearer": {"token": "token"}, - "header": { - "name": "name", - "value": "value", - }, - "query": { - "key": "key", - "value": "value", - }, - }, - "host": "host", - }, - { - "auth": { - "basic": { - "password": "password", - "user_id": "user_id", - }, - "bearer": {"token": "token"}, - "header": { - "name": "name", - "value": "value", - }, - "query": { - "key": "key", - "value": "value", - }, - }, - "host": "host", - }, + } ] }, language="PYTHON", diff --git a/tests/api_resources/test_tools.py b/tests/api_resources/test_tools.py index 63d6ca5..45f5677 100644 --- a/tests/api_resources/test_tools.py +++ b/tests/api_resources/test_tools.py @@ -157,17 +157,7 @@ def test_method_exec_with_all_params(self, client: Riza) -> None: "name": "name", "secret_id": "secret_id", "value": "value", - }, - { - "name": "name", - "secret_id": "secret_id", - "value": "value", - }, - { - "name": "name", - "secret_id": "secret_id", - "value": "value", - }, + } ], http={ "allow": [ @@ -189,45 +179,7 @@ def test_method_exec_with_all_params(self, client: Riza) -> None: }, }, "host": "host", - }, - { - "auth": { - "basic": { - "password": "password", - "secret_id": "secret_id", - "user_id": "user_id", - }, - "bearer": { - "token": "token", - "secret_id": "secret_id", - }, - "query": { - "key": "key", - "secret_id": "secret_id", - "value": "value", - }, - }, - "host": "host", - }, - { - "auth": { - "basic": { - "password": "password", - "secret_id": "secret_id", - "user_id": "user_id", - }, - "bearer": { - "token": "token", - "secret_id": "secret_id", - }, - "query": { - "key": "key", - "secret_id": "secret_id", - "value": "value", - }, - }, - "host": "host", - }, + } ] }, input={}, @@ -444,17 +396,7 @@ async def test_method_exec_with_all_params(self, async_client: AsyncRiza) -> Non "name": "name", "secret_id": "secret_id", "value": "value", - }, - { - "name": "name", - "secret_id": "secret_id", - "value": "value", - }, - { - "name": "name", - "secret_id": "secret_id", - "value": "value", - }, + } ], http={ "allow": [ @@ -476,45 +418,7 @@ async def test_method_exec_with_all_params(self, async_client: AsyncRiza) -> Non }, }, "host": "host", - }, - { - "auth": { - "basic": { - "password": "password", - "secret_id": "secret_id", - "user_id": "user_id", - }, - "bearer": { - "token": "token", - "secret_id": "secret_id", - }, - "query": { - "key": "key", - "secret_id": "secret_id", - "value": "value", - }, - }, - "host": "host", - }, - { - "auth": { - "basic": { - "password": "password", - "secret_id": "secret_id", - "user_id": "user_id", - }, - "bearer": { - "token": "token", - "secret_id": "secret_id", - }, - "query": { - "key": "key", - "secret_id": "secret_id", - "value": "value", - }, - }, - "host": "host", - }, + } ] }, input={},