Skip to content

test: rename API_BASE_URL to TEST_API_BASE_URL #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2023
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
4 changes: 2 additions & 2 deletions bin/check-test-server
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ function prism_is_running() {
}

function is_overriding_api_base_url() {
[ -n "$API_BASE_URL" ]
[ -n "$TEST_API_BASE_URL" ]
}

if is_overriding_api_base_url ; then
# If someone is running the tests against the live API, we can trust they know
# what they're doing and exit early.
echo -e "${GREEN}✔ Running tests against ${API_BASE_URL}${NC}"
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"

exit 0
elif prism_is_running ; then
Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/hris/benefits/test_individuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
IndividualEnrolledIDsResponse,
)

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/hris/test_benefits.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
CreateCompanyBenefitsResponse,
)

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/hris/test_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from tests.utils import assert_matches_type
from finch.types.hris import Company

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/hris/test_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from finch.pagination import SyncIndividualsPage, AsyncIndividualsPage
from finch.types.hris import IndividualInDirectory

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/hris/test_employments.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from finch.pagination import SyncResponsesPage, AsyncResponsesPage
from finch.types.hris import EmploymentDataResponse

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/hris/test_individuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from finch.pagination import SyncResponsesPage, AsyncResponsesPage
from finch.types.hris import IndividualResponse

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/hris/test_pay_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from finch.pagination import SyncResponsesPage, AsyncResponsesPage
from finch.types.hris import PayStatementResponse

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/hris/test_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from finch.pagination import SyncSinglePage, AsyncSinglePage
from finch.types.hris import Payment

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from finch.types import Introspection, DisconnectResponse
from tests.utils import assert_matches_type

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from tests.utils import assert_matches_type
from finch.pagination import SyncSinglePage, AsyncSinglePage

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_top_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from finch import Finch, AsyncFinch

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from finch import Finch, AsyncFinch

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from finch._exceptions import APIResponseValidationError
from finch._base_client import BaseClient, make_request_options

base_url = os.environ.get("API_BASE_URL", "http://127.0.0.1:4010")
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
access_token = os.environ.get("API_KEY", "something1234")


Expand Down