Skip to content

Commit f802dcc

Browse files
committed
one more test fix
1 parent d078ec6 commit f802dcc

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

livekit-rtc/tests/test_e2e.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
import uuid
2424
from typing import Any, Callable, Dict, List, TypeVar
2525
import numpy as np
26-
import pytest # type: ignore[import-not-found]
26+
import pytest
2727

2828
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
3030

3131

3232
SAMPLE_RATE = 48000
@@ -82,8 +82,8 @@ def unique_room_name(base: str) -> str:
8282
return f"{base}-{uuid.uuid4().hex[:8]}"
8383

8484

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]
8787
async def test_publish_track() -> None:
8888
"""Test that a published track can be subscribed by another participant"""
8989
room_name = unique_room_name("test-publish-track")
@@ -141,8 +141,8 @@ def on_track_subscribed(
141141
await subscriber_room.disconnect()
142142

143143

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]
146146
async def test_audio_stream_subscribe() -> None:
147147
"""Test that published audio can be consumed and has similar energy levels"""
148148
room_name = unique_room_name("test-audio-stream")
@@ -237,8 +237,8 @@ async def publish_audio() -> None:
237237
await subscriber_room.disconnect()
238238

239239

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]
242242
async def test_room_lifecycle_events() -> None:
243243
"""Test that room lifecycle and track events are fired properly"""
244244
room_name = unique_room_name("test-lifecycle-events")
@@ -391,8 +391,8 @@ def on_room2_track_unpublished(
391391
await room2.disconnect()
392392

393393

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]
396396
async def test_connection_state_transitions() -> None:
397397
"""Test that connection state transitions work correctly"""
398398
room_name = unique_room_name("test-connection-state")

livekit-rtc/tests/test_emitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from livekit.rtc import EventEmitter
22
from typing import Any, Literal
3-
import pytest # type: ignore[import-not-found]
3+
import pytest
44

55

66
def test_events() -> None:

makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ lint-fix: ## Run ruff linter and fix issues automatically
7070

7171
type-check: ## Run mypy type checker
7272
@echo "$(BOLD)$(CYAN)Running type checker...$(RESET)"
73-
@uv pip install pip 2>/dev/null || true
74-
@if uv run mypy --install-types --non-interactive \
75-
-p livekit.rtc \
76-
-p livekit.api \
77-
-p livekit.protocol; then \
73+
@if uv run mypy livekit-protocol livekit-api livekit-rtc; then \
7874
echo "$(BOLD)$(GREEN)✓ Type checking passed$(RESET)"; \
7975
else \
8076
echo "$(BOLD)$(RED)✗ Type checking failed$(RESET)"; \

0 commit comments

Comments
 (0)