From 689e3235732b03391f3f40146f4c5f22b0b0e6bd Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Fri, 26 Apr 2024 13:48:44 +0000 Subject: [PATCH] chore(internal): reformat imports --- tests/api_resources/hris/benefits/test_individuals.py | 10 ++++++---- tests/api_resources/hris/test_benefits.py | 10 ++++++---- tests/api_resources/hris/test_company.py | 2 +- tests/api_resources/hris/test_directory.py | 2 +- tests/api_resources/hris/test_employments.py | 2 +- tests/api_resources/hris/test_individuals.py | 2 +- tests/api_resources/hris/test_pay_statements.py | 2 +- tests/api_resources/hris/test_payments.py | 2 +- tests/api_resources/jobs/test_automated.py | 3 +-- tests/api_resources/jobs/test_manual.py | 2 +- .../api_resources/sandbox/connections/test_accounts.py | 6 ++++-- tests/api_resources/sandbox/jobs/test_configuration.py | 3 +-- tests/api_resources/sandbox/test_company.py | 2 +- tests/api_resources/sandbox/test_connections.py | 2 +- tests/api_resources/sandbox/test_directory.py | 2 +- tests/api_resources/sandbox/test_employment.py | 2 +- tests/api_resources/sandbox/test_individual.py | 2 +- tests/api_resources/sandbox/test_jobs.py | 2 +- tests/api_resources/sandbox/test_payment.py | 2 +- tests/api_resources/test_access_tokens.py | 2 +- tests/api_resources/test_account.py | 3 +-- tests/api_resources/test_providers.py | 2 +- tests/api_resources/test_request_forwarding.py | 2 +- 23 files changed, 36 insertions(+), 33 deletions(-) diff --git a/tests/api_resources/hris/benefits/test_individuals.py b/tests/api_resources/hris/benefits/test_individuals.py index 252b12ed..9defbc96 100644 --- a/tests/api_resources/hris/benefits/test_individuals.py +++ b/tests/api_resources/hris/benefits/test_individuals.py @@ -10,10 +10,12 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type from finch.pagination import SyncSinglePage, AsyncSinglePage -from finch.types.hris.benefits.individual_benefit import IndividualBenefit -from finch.types.hris.benefits.enrolled_individual import EnrolledIndividual -from finch.types.hris.benefits.unenrolled_individual import UnenrolledIndividual -from finch.types.hris.benefits.individual_enrolled_ids_response import IndividualEnrolledIDsResponse +from finch.types.hris.benefits import ( + IndividualBenefit, + EnrolledIndividual, + UnenrolledIndividual, + IndividualEnrolledIDsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hris/test_benefits.py b/tests/api_resources/hris/test_benefits.py index 6be54989..ea02d4ac 100644 --- a/tests/api_resources/hris/test_benefits.py +++ b/tests/api_resources/hris/test_benefits.py @@ -10,10 +10,12 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type from finch.pagination import SyncSinglePage, AsyncSinglePage -from finch.types.hris.company_benefit import CompanyBenefit -from finch.types.hris.supported_benefit import SupportedBenefit -from finch.types.hris.update_company_benefit_response import UpdateCompanyBenefitResponse -from finch.types.hris.create_company_benefits_response import CreateCompanyBenefitsResponse +from finch.types.hris import ( + CompanyBenefit, + SupportedBenefit, + UpdateCompanyBenefitResponse, + CreateCompanyBenefitsResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hris/test_company.py b/tests/api_resources/hris/test_company.py index 8ea9dba0..ea4052f9 100644 --- a/tests/api_resources/hris/test_company.py +++ b/tests/api_resources/hris/test_company.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.hris.company import Company +from finch.types.hris import Company base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hris/test_directory.py b/tests/api_resources/hris/test_directory.py index e8d9603b..5822d710 100644 --- a/tests/api_resources/hris/test_directory.py +++ b/tests/api_resources/hris/test_directory.py @@ -10,7 +10,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type from finch.pagination import SyncIndividualsPage, AsyncIndividualsPage -from finch.types.hris.individual_in_directory import IndividualInDirectory +from finch.types.hris import IndividualInDirectory # pyright: reportDeprecated=false diff --git a/tests/api_resources/hris/test_employments.py b/tests/api_resources/hris/test_employments.py index 433b8f5e..d228f309 100644 --- a/tests/api_resources/hris/test_employments.py +++ b/tests/api_resources/hris/test_employments.py @@ -10,7 +10,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type from finch.pagination import SyncResponsesPage, AsyncResponsesPage -from finch.types.hris.employment_data_response import EmploymentDataResponse +from finch.types.hris import EmploymentDataResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hris/test_individuals.py b/tests/api_resources/hris/test_individuals.py index 6558eafe..f34d10fb 100644 --- a/tests/api_resources/hris/test_individuals.py +++ b/tests/api_resources/hris/test_individuals.py @@ -10,7 +10,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type from finch.pagination import SyncResponsesPage, AsyncResponsesPage -from finch.types.hris.individual_response import IndividualResponse +from finch.types.hris import IndividualResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hris/test_pay_statements.py b/tests/api_resources/hris/test_pay_statements.py index 3d77abdf..b52cc2b7 100644 --- a/tests/api_resources/hris/test_pay_statements.py +++ b/tests/api_resources/hris/test_pay_statements.py @@ -10,7 +10,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type from finch.pagination import SyncResponsesPage, AsyncResponsesPage -from finch.types.hris.pay_statement_response import PayStatementResponse +from finch.types.hris import PayStatementResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hris/test_payments.py b/tests/api_resources/hris/test_payments.py index 4d421368..70b183ea 100644 --- a/tests/api_resources/hris/test_payments.py +++ b/tests/api_resources/hris/test_payments.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from finch._utils import parse_date from finch.pagination import SyncSinglePage, AsyncSinglePage -from finch.types.hris.payment import Payment +from finch.types.hris import Payment base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/jobs/test_automated.py b/tests/api_resources/jobs/test_automated.py index 632d4051..5cf5644a 100644 --- a/tests/api_resources/jobs/test_automated.py +++ b/tests/api_resources/jobs/test_automated.py @@ -10,8 +10,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type from finch.pagination import SyncPage, AsyncPage -from finch.types.jobs.automated_async_job import AutomatedAsyncJob -from finch.types.jobs.automated_create_response import AutomatedCreateResponse +from finch.types.jobs import AutomatedAsyncJob, AutomatedCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/jobs/test_manual.py b/tests/api_resources/jobs/test_manual.py index 71d2cc4a..ec6d528a 100644 --- a/tests/api_resources/jobs/test_manual.py +++ b/tests/api_resources/jobs/test_manual.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.jobs.manual_async_job import ManualAsyncJob +from finch.types.jobs import ManualAsyncJob base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/sandbox/connections/test_accounts.py b/tests/api_resources/sandbox/connections/test_accounts.py index 16dfd79e..82058694 100644 --- a/tests/api_resources/sandbox/connections/test_accounts.py +++ b/tests/api_resources/sandbox/connections/test_accounts.py @@ -9,8 +9,10 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.sandbox.connections.account_create_response import AccountCreateResponse -from finch.types.sandbox.connections.account_update_response import AccountUpdateResponse +from finch.types.sandbox.connections import ( + AccountCreateResponse, + AccountUpdateResponse, +) base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/sandbox/jobs/test_configuration.py b/tests/api_resources/sandbox/jobs/test_configuration.py index 34503f42..b7d8ac2c 100644 --- a/tests/api_resources/sandbox/jobs/test_configuration.py +++ b/tests/api_resources/sandbox/jobs/test_configuration.py @@ -9,8 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.sandbox.jobs.sandbox_job_configuration import SandboxJobConfiguration -from finch.types.sandbox.jobs.configuration_retrieve_response import ConfigurationRetrieveResponse +from finch.types.sandbox.jobs import SandboxJobConfiguration, ConfigurationRetrieveResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/sandbox/test_company.py b/tests/api_resources/sandbox/test_company.py index c1d549a1..4104eb8a 100644 --- a/tests/api_resources/sandbox/test_company.py +++ b/tests/api_resources/sandbox/test_company.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.sandbox.company_update_response import CompanyUpdateResponse +from finch.types.sandbox import CompanyUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/sandbox/test_connections.py b/tests/api_resources/sandbox/test_connections.py index e7590976..2cbb0fe0 100644 --- a/tests/api_resources/sandbox/test_connections.py +++ b/tests/api_resources/sandbox/test_connections.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.sandbox.connection_create_response import ConnectionCreateResponse +from finch.types.sandbox import ConnectionCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/sandbox/test_directory.py b/tests/api_resources/sandbox/test_directory.py index 65a1644c..a42d4fcb 100644 --- a/tests/api_resources/sandbox/test_directory.py +++ b/tests/api_resources/sandbox/test_directory.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.sandbox.directory_create_response import DirectoryCreateResponse +from finch.types.sandbox import DirectoryCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/sandbox/test_employment.py b/tests/api_resources/sandbox/test_employment.py index 59d8d2d1..7183dac5 100644 --- a/tests/api_resources/sandbox/test_employment.py +++ b/tests/api_resources/sandbox/test_employment.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.sandbox.employment_update_response import EmploymentUpdateResponse +from finch.types.sandbox import EmploymentUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/sandbox/test_individual.py b/tests/api_resources/sandbox/test_individual.py index bcce58fc..5d8f0683 100644 --- a/tests/api_resources/sandbox/test_individual.py +++ b/tests/api_resources/sandbox/test_individual.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.sandbox.individual_update_response import IndividualUpdateResponse +from finch.types.sandbox import IndividualUpdateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/sandbox/test_jobs.py b/tests/api_resources/sandbox/test_jobs.py index 33d105cb..fd990987 100644 --- a/tests/api_resources/sandbox/test_jobs.py +++ b/tests/api_resources/sandbox/test_jobs.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.sandbox.job_create_response import JobCreateResponse +from finch.types.sandbox import JobCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/sandbox/test_payment.py b/tests/api_resources/sandbox/test_payment.py index 39bb7873..9b0c803a 100644 --- a/tests/api_resources/sandbox/test_payment.py +++ b/tests/api_resources/sandbox/test_payment.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.sandbox.payment_create_response import PaymentCreateResponse +from finch.types.sandbox import PaymentCreateResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_access_tokens.py b/tests/api_resources/test_access_tokens.py index 3b5da120..3dcbe2e3 100644 --- a/tests/api_resources/test_access_tokens.py +++ b/tests/api_resources/test_access_tokens.py @@ -8,8 +8,8 @@ import pytest from finch import Finch, AsyncFinch +from finch.types import CreateAccessTokenResponse from tests.utils import assert_matches_type -from finch.types.create_access_token_response import CreateAccessTokenResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_account.py b/tests/api_resources/test_account.py index 5addd4b6..2464a527 100644 --- a/tests/api_resources/test_account.py +++ b/tests/api_resources/test_account.py @@ -8,9 +8,8 @@ import pytest from finch import Finch, AsyncFinch +from finch.types import Introspection, DisconnectResponse from tests.utils import assert_matches_type -from finch.types.introspection import Introspection -from finch.types.disconnect_response import DisconnectResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_providers.py b/tests/api_resources/test_providers.py index 4985d486..380fdf9c 100644 --- a/tests/api_resources/test_providers.py +++ b/tests/api_resources/test_providers.py @@ -8,9 +8,9 @@ import pytest from finch import Finch, AsyncFinch +from finch.types import Provider from tests.utils import assert_matches_type from finch.pagination import SyncSinglePage, AsyncSinglePage -from finch.types.provider import Provider base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/test_request_forwarding.py b/tests/api_resources/test_request_forwarding.py index 0a1758f5..ea0c6319 100644 --- a/tests/api_resources/test_request_forwarding.py +++ b/tests/api_resources/test_request_forwarding.py @@ -8,8 +8,8 @@ import pytest from finch import Finch, AsyncFinch +from finch.types import RequestForwardingForwardResponse from tests.utils import assert_matches_type -from finch.types.request_forwarding_forward_response import RequestForwardingForwardResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")