|
23 | 23 | import uuid |
24 | 24 | from typing import Any, Callable, Dict, List, TypeVar |
25 | 25 | import numpy as np |
26 | | -import pytest # type: ignore[import-not-found] |
| 26 | +import pytest |
27 | 27 |
|
28 | 28 | from livekit import rtc, api |
29 | | -from livekit.rtc.utils import sine_wave_generator # type: ignore[attr-defined] |
| 29 | +from livekit.rtc.utils import sine_wave_generator |
30 | 30 |
|
31 | 31 |
|
32 | 32 | SAMPLE_RATE = 48000 |
@@ -82,8 +82,8 @@ def unique_room_name(base: str) -> str: |
82 | 82 | return f"{base}-{uuid.uuid4().hex[:8]}" |
83 | 83 |
|
84 | 84 |
|
85 | | -@pytest.mark.asyncio # type: ignore[misc] |
86 | | -@skip_if_no_credentials() # type: ignore[misc] |
| 85 | +@pytest.mark.asyncio |
| 86 | +@skip_if_no_credentials() # type: ignore[untyped-decorator] |
87 | 87 | async def test_publish_track() -> None: |
88 | 88 | """Test that a published track can be subscribed by another participant""" |
89 | 89 | room_name = unique_room_name("test-publish-track") |
@@ -141,8 +141,8 @@ def on_track_subscribed( |
141 | 141 | await subscriber_room.disconnect() |
142 | 142 |
|
143 | 143 |
|
144 | | -@pytest.mark.asyncio # type: ignore[misc] |
145 | | -@skip_if_no_credentials() # type: ignore[misc] |
| 144 | +@pytest.mark.asyncio |
| 145 | +@skip_if_no_credentials() # type: ignore[untyped-decorator] |
146 | 146 | async def test_audio_stream_subscribe() -> None: |
147 | 147 | """Test that published audio can be consumed and has similar energy levels""" |
148 | 148 | room_name = unique_room_name("test-audio-stream") |
@@ -237,8 +237,8 @@ async def publish_audio() -> None: |
237 | 237 | await subscriber_room.disconnect() |
238 | 238 |
|
239 | 239 |
|
240 | | -@pytest.mark.asyncio # type: ignore[misc] |
241 | | -@skip_if_no_credentials() # type: ignore[misc] |
| 240 | +@pytest.mark.asyncio |
| 241 | +@skip_if_no_credentials() # type: ignore[untyped-decorator] |
242 | 242 | async def test_room_lifecycle_events() -> None: |
243 | 243 | """Test that room lifecycle and track events are fired properly""" |
244 | 244 | room_name = unique_room_name("test-lifecycle-events") |
@@ -391,8 +391,8 @@ def on_room2_track_unpublished( |
391 | 391 | await room2.disconnect() |
392 | 392 |
|
393 | 393 |
|
394 | | -@pytest.mark.asyncio # type: ignore[misc] |
395 | | -@skip_if_no_credentials() # type: ignore[misc] |
| 394 | +@pytest.mark.asyncio |
| 395 | +@skip_if_no_credentials() # type: ignore[untyped-decorator] |
396 | 396 | async def test_connection_state_transitions() -> None: |
397 | 397 | """Test that connection state transitions work correctly""" |
398 | 398 | room_name = unique_room_name("test-connection-state") |
|
0 commit comments