diff --git a/tests/snapshot_tests/conftest.py b/tests/snapshot_tests/conftest.py index 782f757d4..127d53596 100644 --- a/tests/snapshot_tests/conftest.py +++ b/tests/snapshot_tests/conftest.py @@ -191,10 +191,9 @@ def pytest_terminal_summary( console = Console(legacy_windows=False, force_terminal=True) if diffs: snapshot_report_location = config._textual_snapshot_html_report - console.rule("[b red]Textual Snapshot Report", style="red") + console.print("[b red]Textual Snapshot Report", style="red") console.print( f"\n[black on red]{len(diffs)} mismatched snapshots[/]\n" f"\n[b]View the [link=file://{snapshot_report_location}]failure report[/].\n" ) console.print(f"[dim]{snapshot_report_location}\n") - console.rule(style="red") diff --git a/tests/test_keys.py b/tests/test_keys.py index 64f28219f..b0948757c 100644 --- a/tests/test_keys.py +++ b/tests/test_keys.py @@ -37,10 +37,14 @@ async def test_character_bindings(): app = BindApp() async with app.run_test() as pilot: await pilot.press(".") + await pilot.pause() assert counter == 1 await pilot.press("~") + await pilot.pause() assert counter == 2 await pilot.press(" ") + await pilot.pause() assert counter == 3 await pilot.press("x") + await pilot.pause() assert counter == 3