Skip to content

Commit 320f366

Browse files
committed
Test for no files downloaded, not raised exception.
1 parent b226817 commit 320f366

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/test_orders_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ async def test_download_order_state(tmpdir, order_description, oid, session):
647647

648648
@respx.mock
649649
@pytest.mark.asyncio
650-
async def test_download_order_invalid_order_links(tmpdir,
650+
async def test_download_order_without_order_links(tmpdir,
651651
order_description,
652652
oid,
653653
session):
@@ -672,8 +672,8 @@ async def test_download_order_invalid_order_links(tmpdir,
672672

673673
client = OrdersClient(session, base_url=TEST_URL)
674674

675-
with pytest.raises(exceptions.ClientError):
676-
await client.download_order(oid, directory=str(tmpdir))
675+
filenames = await client.download_order(oid, directory=str(tmpdir))
676+
assert len(filenames) == 0
677677

678678

679679
@respx.mock

0 commit comments

Comments
 (0)