This commit is contained in:
Lars Nolden
2026-07-24 13:57:13 +02:00
parent fc8813c14a
commit 50a9ee8c58
16 changed files with 206 additions and 32 deletions
+9
View File
@@ -48,6 +48,15 @@ async def test_device_appears_and_selects():
assert app.selected_id == "76348799"
@pytest.mark.asyncio
async def test_ctrl_c_quits():
app = OmsApp(device="none", autostart=False)
async with app.run_test() as pilot:
await pilot.press("ctrl+c")
await pilot.pause()
assert app._exit is True
@pytest.mark.asyncio
async def test_set_key_via_modal():
app = OmsApp(device="none", autostart=False)