daily: on_first_other_participant_joined now gets the participant

This commit is contained in:
Aleix Conchillo Flaqué
2024-04-08 23:05:29 -07:00
parent 53930b47a5
commit 96950ca6df
14 changed files with 17 additions and 19 deletions

View File

@@ -11,11 +11,11 @@ class TestDailyTransport(unittest.IsolatedAsyncioTestCase):
was_called = False
@transport.event_handler("on_first_other_participant_joined")
def test_event_handler(transport):
def test_event_handler(transport, participant):
nonlocal was_called
was_called = True
transport.on_first_other_participant_joined()
transport.on_first_other_participant_joined({"id": "user-id"})
self.assertTrue(was_called)
@@ -29,7 +29,7 @@ class TestDailyTransport(unittest.IsolatedAsyncioTestCase):
event = asyncio.Event()
@transport.event_handler("on_first_other_participant_joined")
async def test_event_handler(transport):
async def test_event_handler(transport, participant):
nonlocal event
print("sleeping")
await asyncio.sleep(0.1)