Skip to content

Commit

Permalink
feat(api): api update (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and DannyNemer committed Dec 29, 2024
1 parent 7596803 commit 318d2cf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 121
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-af8c2aaa1210e480e484461ecc43135efa6db58732ba41b1352836adc0b1bb00.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-b6bb3bb8a612bb8e9494784b44876e164acd147b49f112d0b30e8e14b14d87fd.yml
24 changes: 12 additions & 12 deletions tests/api_resources/qbd/test_subtotal_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class TestSubtotalItems:
@parametrize
def test_method_create(self, client: Conductor) -> None:
subtotal_item = client.qbd.subtotal_items.create(
name="Labor",
name="Labor subtotal",
conductor_end_user_id="end_usr_1234567abcdefg",
)
assert_matches_type(QbdSubtotalItem, subtotal_item, path=["response"])

@parametrize
def test_method_create_with_all_params(self, client: Conductor) -> None:
subtotal_item = client.qbd.subtotal_items.create(
name="Labor",
name="Labor subtotal",
conductor_end_user_id="end_usr_1234567abcdefg",
barcode={
"allow_override": False,
Expand All @@ -47,7 +47,7 @@ def test_method_create_with_all_params(self, client: Conductor) -> None:
@parametrize
def test_raw_response_create(self, client: Conductor) -> None:
response = client.qbd.subtotal_items.with_raw_response.create(
name="Labor",
name="Labor subtotal",
conductor_end_user_id="end_usr_1234567abcdefg",
)

Expand All @@ -59,7 +59,7 @@ def test_raw_response_create(self, client: Conductor) -> None:
@parametrize
def test_streaming_response_create(self, client: Conductor) -> None:
with client.qbd.subtotal_items.with_streaming_response.create(
name="Labor",
name="Labor subtotal",
conductor_end_user_id="end_usr_1234567abcdefg",
) as response:
assert not response.is_closed
Expand Down Expand Up @@ -134,7 +134,7 @@ def test_method_update_with_all_params(self, client: Conductor) -> None:
},
description="Subtotal for all labor costs on this project",
is_active=True,
name="Labor",
name="Labor subtotal",
)
assert_matches_type(QbdSubtotalItem, subtotal_item, path=["response"])

Expand Down Expand Up @@ -192,7 +192,7 @@ def test_method_list_with_all_params(self, client: Conductor) -> None:
name_contains="ABC",
name_ends_with="ABC",
name_from="A",
names=["Labor"],
names=["Labor subtotal"],
name_starts_with="ABC",
name_to="Z",
status="active",
Expand Down Expand Up @@ -232,15 +232,15 @@ class TestAsyncSubtotalItems:
@parametrize
async def test_method_create(self, async_client: AsyncConductor) -> None:
subtotal_item = await async_client.qbd.subtotal_items.create(
name="Labor",
name="Labor subtotal",
conductor_end_user_id="end_usr_1234567abcdefg",
)
assert_matches_type(QbdSubtotalItem, subtotal_item, path=["response"])

@parametrize
async def test_method_create_with_all_params(self, async_client: AsyncConductor) -> None:
subtotal_item = await async_client.qbd.subtotal_items.create(
name="Labor",
name="Labor subtotal",
conductor_end_user_id="end_usr_1234567abcdefg",
barcode={
"allow_override": False,
Expand All @@ -256,7 +256,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncConductor)
@parametrize
async def test_raw_response_create(self, async_client: AsyncConductor) -> None:
response = await async_client.qbd.subtotal_items.with_raw_response.create(
name="Labor",
name="Labor subtotal",
conductor_end_user_id="end_usr_1234567abcdefg",
)

Expand All @@ -268,7 +268,7 @@ async def test_raw_response_create(self, async_client: AsyncConductor) -> None:
@parametrize
async def test_streaming_response_create(self, async_client: AsyncConductor) -> None:
async with async_client.qbd.subtotal_items.with_streaming_response.create(
name="Labor",
name="Labor subtotal",
conductor_end_user_id="end_usr_1234567abcdefg",
) as response:
assert not response.is_closed
Expand Down Expand Up @@ -343,7 +343,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncConductor)
},
description="Subtotal for all labor costs on this project",
is_active=True,
name="Labor",
name="Labor subtotal",
)
assert_matches_type(QbdSubtotalItem, subtotal_item, path=["response"])

Expand Down Expand Up @@ -401,7 +401,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncConductor) -
name_contains="ABC",
name_ends_with="ABC",
name_from="A",
names=["Labor"],
names=["Labor subtotal"],
name_starts_with="ABC",
name_to="Z",
status="active",
Expand Down

0 comments on commit 318d2cf

Please sign in to comment.