Skip to content

Commit 6a0aab8

Browse files
xitzhangXiting Zhangscbedd
authored
[VoiceLive] Skip the tests based on aiohttp in whl_no_aio env (#43176)
* [VoiceLive] Add tests * modify tests * update test * update env vars * update path of preparer * remove live test tag * update async config * update test resources * update * update * update models * update * update * update * update tests.yml construction * update assets * update mark * update pylint * update for 1.0.0b5 * remove useless resources * update async option * update for whl_no_aio env * update --------- Co-authored-by: Xiting Zhang <[email protected]> Co-authored-by: Scott Beddall <[email protected]>
1 parent e259b7c commit 6a0aab8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

sdk/ai/azure-ai-voicelive/tests/test_unit_connection.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
# --------------------------------------------------------------------------
66

77
import pytest
8-
from unittest.mock import AsyncMock, MagicMock, patch
8+
from unittest.mock import AsyncMock, patch
9+
10+
pytest.importorskip(
11+
"aiohttp",
12+
reason="Skipping aio tests: aiohttp not installed (whl_no_aio).",
13+
)
914

1015
from azure.ai.voicelive.aio import (
1116
VoiceLiveConnection,

sdk/ai/azure-ai-voicelive/tests/test_unit_integration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
import pytest
1313
import importlib
1414

15+
pytest.importorskip(
16+
"aiohttp",
17+
reason="Skipping aio tests: aiohttp not installed (whl_no_aio).",
18+
)
19+
1520
# Import the modules we want to test
1621
import azure.ai.voicelive.models as models
1722
import azure.ai.voicelive.aio as aio_module

0 commit comments

Comments
 (0)