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
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/entities/test_beneficial_owners.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase.types import Entity
from increase._utils import parse_date

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase.pagination import SyncPage, AsyncPage
from increase.types.entities import SupplementalDocument

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_account_statements.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 increase.types import AccountStatement

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_account_transfers.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 increase.types import AccountTransfer

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.types.simulations import ACHTransferSimulation

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_card_disputes.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 increase.types import CardDispute

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_card_profiles.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 increase.types import CardProfile

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_card_refunds.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 increase.types import Transaction

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase.types import Transaction
from increase.types.simulations import CardAuthorizationSimulation

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_check_deposits.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 increase.types import CheckDeposit

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_check_transfers.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 increase.types import CheckTransfer

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from tests.utils import assert_matches_type
from increase.types.simulations import DigitalWalletTokenRequestCreateResponse

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_documents.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 increase.types import Document

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from tests.utils import assert_matches_type
from increase.types.simulations import InboundFundsHoldReleaseResponse

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from tests.utils import assert_matches_type
from increase.types import InboundWireDrawdownRequest

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_interest_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase._utils import parse_datetime
from increase.types.simulations import InterestPaymentSimulationResult

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_physical_cards.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 increase.types import PhysicalCard

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_programs.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 increase.types import Program

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase.types import RealTimePaymentsTransfer
from increase.types.simulations import InboundRealTimePaymentsTransferSimulationResult

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/simulations/test_wire_transfers.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 increase.types.simulations import WireTransferSimulation

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_account_numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_account_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_account_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_ach_prenotifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_date, parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_date, parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_balance_lookups.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase.types import BalanceLookupLookupResponse
from increase._utils import parse_datetime

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_bookkeeping_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase.types import BookkeepingAccount
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_bookkeeping_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase.types import BookkeepingEntry
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_bookkeeping_entry_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase.types import BookkeepingEntrySet
from increase._utils import parse_datetime

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_card_disputes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_card_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_card_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase.types import CardProfile
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_card_purchase_supplements.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_check_deposits.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_check_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_declined_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_digital_wallet_tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from increase._utils import parse_date, parse_datetime
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
2 changes: 1 addition & 1 deletion tests/api_resources/test_event_subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from increase.types import EventSubscription
from increase.pagination import SyncPage, AsyncPage

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")
api_key = os.environ.get("API_KEY", "something1234")


Expand Down
Loading