mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Added test
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
|
||||
from textual.app import App
|
||||
from textual.keys import _character_to_key
|
||||
from textual.keys import _character_to_key, _get_key_display
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
@@ -48,3 +48,7 @@ async def test_character_bindings():
|
||||
await pilot.press("x")
|
||||
await pilot.pause()
|
||||
assert counter == 3
|
||||
|
||||
|
||||
def test_get_key_display():
|
||||
assert _get_key_display("minus") == "-"
|
||||
|
||||
Reference in New Issue
Block a user