Skip to content

Commit 75ba5a4

Browse files
committed
deprecate freemium url and point the test to platform url
1 parent 49ed16e commit 75ba5a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

_test_unstructured_client/integration/test_integration_freemium.py renamed to _test_unstructured_client/integration/test_integration.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
from unstructured_client.utils.retries import BackoffStrategy, RetryConfig
1414

1515

16-
FREEMIUM_URL = "https://api.unstructured.io"
16+
SERVER_URL = "https://platform.unstructured.io"
1717

1818

1919
@pytest.fixture(scope="module")
2020
def client() -> UnstructuredClient:
21-
_client = UnstructuredClient(api_key_auth=os.getenv("UNSTRUCTURED_API_KEY"))
21+
_client = UnstructuredClient(api_key_auth="rZig3h2vRsdoeuY2A0558Va4667zGm")
2222
yield _client
2323

2424

@@ -47,7 +47,7 @@ def test_partition_strategies(split_pdf, strategy, client, doc_path):
4747
)
4848

4949
response = client.general.partition(
50-
server_url=FREEMIUM_URL,
50+
server_url=SERVER_URL,
5151
request=req
5252
)
5353
assert response.status_code == 200
@@ -109,7 +109,7 @@ def test_partition_handling_server_error(error, split_pdf, monkeypatch, doc_path
109109

110110
with pytest.raises(sdk_raises):
111111
response = client.general.partition(
112-
server_url=FREEMIUM_URL,
112+
server_url=SERVER_URL,
113113
request=req
114114
)
115115

@@ -220,7 +220,7 @@ async def call_api():
220220
)
221221

222222
resp = client.general.partition(
223-
server_url=FREEMIUM_URL,
223+
server_url=SERVER_URL,
224224
request=req
225225
)
226226

0 commit comments

Comments
 (0)