We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 010a331 commit 57dda50Copy full SHA for 57dda50
tests/test_utils_retries.py
@@ -14,6 +14,7 @@ def get_api_key():
14
raise ValueError("UNS_API_KEY environment variable not set")
15
return api_key
16
17
+# this test requires UNS_API_KEY be set in your shell session. Ex: `export UNS_API_KEY=<api_key>`
18
def test_backoff_strategy():
19
filename = "README.md"
20
backoff_strategy = BackoffStrategy(
@@ -24,7 +25,7 @@ def test_backoff_strategy():
24
25
)
26
27
with requests_mock.Mocker() as mock:
- # mock 500 status code for POST requests to the api
28
+ # mock a 500 status code for POST requests to the api
29
mock.post("https://api.unstructured.io/general/v0/general", status_code=500)
30
session = UnstructuredClient(api_key_auth=get_api_key())
31
0 commit comments