From 103c27b94295d21bc798d48f53dfcabb0cc24aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Mon, 13 Mar 2023 14:11:33 +0000 Subject: [PATCH] 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. --- tests/test_pilot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_pilot.py b/tests/test_pilot.py index 2ca527895..04491dea9 100644 --- a/tests/test_pilot.py +++ b/tests/test_pilot.py @@ -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():