Skip to content

Commit 45a0ee8

Browse files
committed
servicex adapter async retry unittest case
1 parent 2e575fb commit 45a0ee8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_servicex_adapter.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import httpx
3232
import pytest
3333
from pytest_asyncio import fixture
34-
3534
from servicex.models import TransformRequest, ResultDestination, ResultFormat
3635
from servicex.servicex_adapter import ServiceXAdapter, AuthorizationError
3736

@@ -199,6 +198,13 @@ async def test_get_transform_status_auth_error(get, servicex):
199198
assert "Transform ID b8c508d0-ccf2-4deb-a1f7-65c839eebabf not found" == str(err.value)
200199

201200

201+
@pytest.mark.asyncio
202+
async def test_get_tranform_status_retry_error(servicex):
203+
with pytest.raises(Exception) as err:
204+
await servicex.get_transform_status("b8c508d0-ccf2-4deb-a1f7-65c839eebabf")
205+
assert "ServiceX WebAPI Error while getting transform status:" in str(err.value)
206+
207+
202208
@pytest.mark.asyncio
203209
async def test_get_authorization(servicex):
204210
servicex.token = "token"

0 commit comments

Comments
 (0)