Skip to content

Commit f467443

Browse files
committed
ruff format.
1 parent 96b2b52 commit f467443

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

livekit-rtc/tests/test_basic.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""End-to-end translation of the Flutter `BasicsTest` scenario.
1+
"""End-to-end Test for basic scenarios.
22
33
The test exercises connect/disconnect lifecycle, participant
44
visibility, reconnection, and track publish/subscribe between four rooms.
@@ -47,6 +47,7 @@ def create_token(identity: str, room_name: str) -> str:
4747
.to_jwt()
4848
)
4949

50+
5051
def unique_room_name(base: str) -> str:
5152
return f"{base}-{uuid.uuid4().hex[:8]}"
5253

@@ -77,9 +78,7 @@ async def _connect(room: rtc.Room, identity: str, room_name: str) -> str:
7778

7879
async def _ensure_all_connected(rooms: list[rtc.Room]) -> None:
7980
await _wait_until(
80-
lambda: all(
81-
r.connection_state == rtc.ConnectionState.CONN_CONNECTED for r in rooms
82-
),
81+
lambda: all(r.connection_state == rtc.ConnectionState.CONN_CONNECTED for r in rooms),
8382
message="not all rooms reached CONN_CONNECTED",
8483
)
8584

@@ -123,9 +122,7 @@ async def _await_event(fut: asyncio.Future, timeout: float = WAIT_TIMEOUT) -> No
123122
raise AssertionError("timed out waiting for event") from e
124123

125124

126-
async def _publish_video(
127-
room: rtc.Room, track_name: str
128-
) -> rtc.LocalTrackPublication:
125+
async def _publish_video(room: rtc.Room, track_name: str) -> rtc.LocalTrackPublication:
129126
source = rtc.VideoSource(320, 240)
130127
track = rtc.LocalVideoTrack.create_video_track(track_name, source)
131128
options = rtc.TrackPublishOptions(source=rtc.TrackSource.SOURCE_CAMERA)

0 commit comments

Comments
 (0)