Skip to content

Commit

Permalink
chore(examples): minor formatting changes (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Aug 12, 2024
1 parent ed6527d commit 8a3230e
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 156 deletions.
4 changes: 2 additions & 2 deletions tests/api_resources/sandbox/connections/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_method_update(self, client: Finch) -> None:
@parametrize
def test_method_update_with_all_params(self, client: Finch) -> None:
account = client.sandbox.connections.accounts.update(
connection_status="reauth",
connection_status="pending",
)
assert_matches_type(AccountUpdateResponse, account, path=["response"])

Expand Down Expand Up @@ -160,7 +160,7 @@ async def test_method_update(self, async_client: AsyncFinch) -> None:
@parametrize
async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> None:
account = await async_client.sandbox.connections.accounts.update(
connection_status="reauth",
connection_status="pending",
)
assert_matches_type(AccountUpdateResponse, account, path=["response"])

Expand Down
88 changes: 44 additions & 44 deletions tests/api_resources/sandbox/test_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
company = client.sandbox.company.update(
accounts=[
{
"routing_number": "routing_number",
"account_name": "account_name",
"institution_name": "institution_name",
"account_type": "checking",
"account_number": "account_number",
"account_type": "checking",
"institution_name": "institution_name",
"routing_number": "routing_number",
},
{
"routing_number": "routing_number",
"account_name": "account_name",
"institution_name": "institution_name",
"account_type": "checking",
"account_number": "account_number",
"account_type": "checking",
"institution_name": "institution_name",
"routing_number": "routing_number",
},
{
"routing_number": "routing_number",
"account_name": "account_name",
"institution_name": "institution_name",
"account_type": "checking",
"account_number": "account_number",
"account_type": "checking",
"institution_name": "institution_name",
"routing_number": "routing_number",
},
],
departments=[
Expand All @@ -73,40 +73,40 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
],
ein="ein",
entity={
"type": "llc",
"subtype": "s_corporation",
"type": "llc",
},
legal_name="legal_name",
locations=[
{
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
{
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
{
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
],
primary_email="primary_email",
Expand Down Expand Up @@ -175,25 +175,25 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
company = await async_client.sandbox.company.update(
accounts=[
{
"routing_number": "routing_number",
"account_name": "account_name",
"institution_name": "institution_name",
"account_type": "checking",
"account_number": "account_number",
"account_type": "checking",
"institution_name": "institution_name",
"routing_number": "routing_number",
},
{
"routing_number": "routing_number",
"account_name": "account_name",
"institution_name": "institution_name",
"account_type": "checking",
"account_number": "account_number",
"account_type": "checking",
"institution_name": "institution_name",
"routing_number": "routing_number",
},
{
"routing_number": "routing_number",
"account_name": "account_name",
"institution_name": "institution_name",
"account_type": "checking",
"account_number": "account_number",
"account_type": "checking",
"institution_name": "institution_name",
"routing_number": "routing_number",
},
],
departments=[
Expand All @@ -212,40 +212,40 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
],
ein="ein",
entity={
"type": "llc",
"subtype": "s_corporation",
"type": "llc",
},
legal_name="legal_name",
locations=[
{
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
{
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
{
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
],
primary_email="primary_email",
Expand Down
36 changes: 18 additions & 18 deletions tests/api_resources/sandbox/test_employment.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,48 +45,48 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
],
department={"name": "name"},
employment={
"type": "employee",
"subtype": "full_time",
"type": "employee",
},
end_date="end_date",
first_name="first_name",
income={
"unit": "yearly",
"amount": 0,
"currency": "currency",
"effective_date": "effective_date",
"unit": "yearly",
},
income_history=[
{
"unit": "yearly",
"amount": 0,
"currency": "currency",
"effective_date": "effective_date",
"unit": "yearly",
},
{
"unit": "yearly",
"amount": 0,
"currency": "currency",
"effective_date": "effective_date",
"unit": "yearly",
},
{
"unit": "yearly",
"amount": 0,
"currency": "currency",
"effective_date": "effective_date",
"unit": "yearly",
},
],
is_active=True,
last_name="last_name",
location={
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
manager={"id": "id"},
middle_name="middle_name",
Expand Down Expand Up @@ -159,48 +159,48 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
],
department={"name": "name"},
employment={
"type": "employee",
"subtype": "full_time",
"type": "employee",
},
end_date="end_date",
first_name="first_name",
income={
"unit": "yearly",
"amount": 0,
"currency": "currency",
"effective_date": "effective_date",
"unit": "yearly",
},
income_history=[
{
"unit": "yearly",
"amount": 0,
"currency": "currency",
"effective_date": "effective_date",
"unit": "yearly",
},
{
"unit": "yearly",
"amount": 0,
"currency": "currency",
"effective_date": "effective_date",
"unit": "yearly",
},
{
"unit": "yearly",
"amount": 0,
"currency": "currency",
"effective_date": "effective_date",
"unit": "yearly",
},
],
is_active=True,
last_name="last_name",
location={
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
manager={"id": "id"},
middle_name="middle_name",
Expand Down
16 changes: 8 additions & 8 deletions tests/api_resources/sandbox/test_individual.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
],
preferred_name="preferred_name",
residence={
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
ssn="ssn",
)
Expand Down Expand Up @@ -161,14 +161,14 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
],
preferred_name="preferred_name",
residence={
"line1": "line1",
"line2": "line2",
"city": "city",
"state": "state",
"postal_code": "postal_code",
"country": "country",
"line1": "line1",
"line2": "line2",
"name": "name",
"postal_code": "postal_code",
"source_id": "source_id",
"state": "state",
},
ssn="ssn",
)
Expand Down
Loading

0 comments on commit 8a3230e

Please sign in to comment.