Skip to content

Commit 57dda50

Browse files
committed
add comment to test
1 parent 010a331 commit 57dda50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_utils_retries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def get_api_key():
1414
raise ValueError("UNS_API_KEY environment variable not set")
1515
return api_key
1616

17+
# this test requires UNS_API_KEY be set in your shell session. Ex: `export UNS_API_KEY=<api_key>`
1718
def test_backoff_strategy():
1819
filename = "README.md"
1920
backoff_strategy = BackoffStrategy(
@@ -24,7 +25,7 @@ def test_backoff_strategy():
2425
)
2526

2627
with requests_mock.Mocker() as mock:
27-
# mock 500 status code for POST requests to the api
28+
# mock a 500 status code for POST requests to the api
2829
mock.post("https://api.unstructured.io/general/v0/general", status_code=500)
2930
session = UnstructuredClient(api_key_auth=get_api_key())
3031

0 commit comments

Comments
 (0)