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:
Rodrigo Girão Serrão
2023-03-13 14:11:33 +00:00
parent 009270cd69
commit 103c27b942

View File

@@ -3,10 +3,8 @@ from string import punctuation
from textual import events
from textual.app import App
KEY_CHARACTERS_TO_TEST = "akTW03" + punctuation.replace("_", "")
"""Test some "simple" characters (letters + digits) and all punctuation.
Ignore the underscore because that is an alias to add a pause in the pilot.
"""
KEY_CHARACTERS_TO_TEST = "akTW03" + punctuation
"""Test some "simple" characters (letters + digits) and all punctuation."""
async def test_pilot_press_ascii_chars():