Skip to content

Commit f8d3680

Browse files
committed
Add os.run to tests
1 parent 57f9456 commit f8d3680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testmod.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ async def test_os_api(api):
604604
with assert_takes_time(1.5, 3):
605605
async with api.os.captureEvent('timer') as timer_queue:
606606
timer_id = await api.os.startTimer(2)
607-
async for etid, in timer_queue:
607+
async for etid, *_ in timer_queue:
608608
if etid == timer_id:
609609
await api.print('Timer reached')
610610
break
@@ -637,7 +637,7 @@ async def test_os_api(api):
637637
assert isinstance(await api.os.time(), (int, float))
638638
assert isinstance(await api.os.clock(), (int, float))
639639

640-
# TODO: run method
640+
assert await api.os.run({}, 'rom/programs/fun/hello.lua') is True
641641

642642
await api.print('Test finished successfully')
643643

0 commit comments

Comments
 (0)