Skip to content

Commit 285d516

Browse files
committed
PTHMINT-108: Make E2E base URL dynamic and stabilize URL tests
1 parent e3c4121 commit 285d516

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/multisafepay/unit/test_unit_sdk.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,14 @@ def test_sdk_blocks_custom_base_url_in_release(
101101
)
102102

103103

104-
def test_sdk_allows_resolver_only_initialization() -> None:
104+
def test_sdk_allows_resolver_only_initialization(
105+
monkeypatch: pytest.MonkeyPatch,
106+
) -> None:
105107
"""Allow constructing SDK without api_key when resolver is provided."""
108+
monkeypatch.delenv("MSP_SDK_BUILD_PROFILE", raising=False)
109+
monkeypatch.delenv("MSP_SDK_CUSTOM_BASE_URL", raising=False)
110+
monkeypatch.delenv("MSP_SDK_ALLOW_CUSTOM_BASE_URL", raising=False)
111+
106112
resolver = ScopedCredentialResolver(default_api_key="resolver_api_key")
107113

108114
sdk = Sdk(

0 commit comments

Comments
 (0)