mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add test for pilot pressing underscore.
The pilot pressing the underscore '_' used to be an alias for a short pause (see #2011). This test makes sure that the pilot can press the underscore '_' as any other character key.
This commit is contained in:
@@ -3,10 +3,8 @@ from string import punctuation
|
|||||||
from textual import events
|
from textual import events
|
||||||
from textual.app import App
|
from textual.app import App
|
||||||
|
|
||||||
KEY_CHARACTERS_TO_TEST = "akTW03" + punctuation.replace("_", "")
|
KEY_CHARACTERS_TO_TEST = "akTW03" + punctuation
|
||||||
"""Test some "simple" characters (letters + digits) and all punctuation.
|
"""Test some "simple" characters (letters + digits) and all punctuation."""
|
||||||
Ignore the underscore because that is an alias to add a pause in the pilot.
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
async def test_pilot_press_ascii_chars():
|
async def test_pilot_press_ascii_chars():
|
||||||
|
|||||||
Reference in New Issue
Block a user