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
8 changes: 4 additions & 4 deletions tests/api_resources/test_medical_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ def test_method_create_list(self, client: Czlai) -> None:
def test_method_create_list_with_all_params(self, client: Czlai) -> None:
medical_record = client.medical_records.create_list(
limit=0,
module_type=[0, 0, 0],
module_type=[0],
page=0,
pet_profile_id=[0, 0, 0],
pet_profile_id=[0],
)
assert_matches_type(MedicalRecordCreateListResponse, medical_record, path=["response"])

Expand Down Expand Up @@ -237,9 +237,9 @@ async def test_method_create_list(self, async_client: AsyncCzlai) -> None:
async def test_method_create_list_with_all_params(self, async_client: AsyncCzlai) -> None:
medical_record = await async_client.medical_records.create_list(
limit=0,
module_type=[0, 0, 0],
module_type=[0],
page=0,
pet_profile_id=[0, 0, 0],
pet_profile_id=[0],
)
assert_matches_type(MedicalRecordCreateListResponse, medical_record, path=["response"])

Expand Down
12 changes: 6 additions & 6 deletions tests/api_resources/test_user_advices.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_method_create(self, client: Czlai) -> None:
user_advice = client.user_advices.create(
advice_type="advice_type",
description="description",
image_list=["string", "string", "string"],
image_list=["string"],
)
assert user_advice is None

Expand All @@ -29,7 +29,7 @@ def test_raw_response_create(self, client: Czlai) -> None:
response = client.user_advices.with_raw_response.create(
advice_type="advice_type",
description="description",
image_list=["string", "string", "string"],
image_list=["string"],
)

assert response.is_closed is True
Expand All @@ -42,7 +42,7 @@ def test_streaming_response_create(self, client: Czlai) -> None:
with client.user_advices.with_streaming_response.create(
advice_type="advice_type",
description="description",
image_list=["string", "string", "string"],
image_list=["string"],
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand All @@ -61,7 +61,7 @@ async def test_method_create(self, async_client: AsyncCzlai) -> None:
user_advice = await async_client.user_advices.create(
advice_type="advice_type",
description="description",
image_list=["string", "string", "string"],
image_list=["string"],
)
assert user_advice is None

Expand All @@ -70,7 +70,7 @@ async def test_raw_response_create(self, async_client: AsyncCzlai) -> None:
response = await async_client.user_advices.with_raw_response.create(
advice_type="advice_type",
description="description",
image_list=["string", "string", "string"],
image_list=["string"],
)

assert response.is_closed is True
Expand All @@ -83,7 +83,7 @@ async def test_streaming_response_create(self, async_client: AsyncCzlai) -> None
async with async_client.user_advices.with_streaming_response.create(
advice_type="advice_type",
description="description",
image_list=["string", "string", "string"],
image_list=["string"],
) as response:
assert not response.is_closed
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/test_whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_method_save_data(self, client: Czlai) -> None:
@parametrize
def test_method_save_data_with_all_params(self, client: Czlai) -> None:
whitelist = client.whitelist.save_data(
save_data=["string", "string", "string"],
save_data=["string"],
)
assert whitelist is None

Expand Down Expand Up @@ -123,7 +123,7 @@ async def test_method_save_data(self, async_client: AsyncCzlai) -> None:
@parametrize
async def test_method_save_data_with_all_params(self, async_client: AsyncCzlai) -> None:
whitelist = await async_client.whitelist.save_data(
save_data=["string", "string", "string"],
save_data=["string"],
)
assert whitelist is None

Expand Down