Remove underscore pauses from (hopefully) all snapshots

This seeks to remove the "_" from the key presses of snapshots and inline
runs in the documentation. The "_" no longer does anything, but got legacy
reasons at the moment we can't actually allow "_" to be an input to a
"faked" keypress in the docs and snapshots.

Removing these clears the way to letting "_" have the same status as any
other character.

See #1994.
This commit is contained in:
Dave Pearson
2023-03-09 20:32:27 +00:00
parent 503c03730e
commit e6f620db44
15 changed files with 28 additions and 28 deletions

View File

@@ -125,12 +125,12 @@ def test_header_render(snap_compare):
def test_list_view(snap_compare):
assert snap_compare(
WIDGET_EXAMPLES_DIR / "list_view.py", press=["tab", "down", "down", "up", "_"]
WIDGET_EXAMPLES_DIR / "list_view.py", press=["tab", "down", "down", "up"]
)
def test_textlog_max_lines(snap_compare):
assert snap_compare("snapshot_apps/textlog_max_lines.py", press=[*"abcde", "_"])
assert snap_compare("snapshot_apps/textlog_max_lines.py", press=[*"abcde"])
def test_fr_units(snap_compare):
@@ -203,7 +203,7 @@ def test_order_independence(snap_compare):
def test_order_independence_toggle(snap_compare):
assert snap_compare("snapshot_apps/layer_order_independence.py", press="t,_")
assert snap_compare("snapshot_apps/layer_order_independence.py", press="t")
def test_columns_height(snap_compare):
@@ -218,7 +218,7 @@ def test_offsets(snap_compare):
def test_nested_auto_heights(snap_compare):
"""Test refreshing widget within a auto sized container"""
assert snap_compare("snapshot_apps/nested_auto_heights.py", press=["1", "2", "_"])
assert snap_compare("snapshot_apps/nested_auto_heights.py", press=["1", "2"])
def test_programmatic_scrollbar_gutter_change(snap_compare):
@@ -295,4 +295,4 @@ def test_focus_component_class(snap_compare):
def test_line_api_scrollbars(snap_compare):
assert snap_compare(SNAPSHOT_APPS_DIR / "line_api_scrollbars.py", press=["_"])
assert snap_compare(SNAPSHOT_APPS_DIR / "line_api_scrollbars.py")