Skip to content

Commit

Permalink
fix 100% coverge (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
royreznik authored Aug 28, 2024
1 parent d6b6bcf commit f1dca8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ async def test_switch_modes() -> None:
await pilot.wait_for_animation()
assert app.regex_current_mode == "match"

async def test_help() -> None:
app: RexiApp[int] = RexiApp("This iS! aTe xt2 F0r T3sT!ng")
async with app.run_test() as pilot:
await pilot.click("#help")
await pilot.wait_for_animation()
await pilot.click("#exitHelp")

async def test_invalide_mode() -> None:
with pytest.raises(ValueError):
Expand Down

0 comments on commit f1dca8e

Please sign in to comment.