Skip to content

Commit 6c5ba82

Browse files
committed
fix for win
1 parent 14953cd commit 6c5ba82

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/snapshot_tests/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,9 @@ def pytest_terminal_summary(
191191
console = Console(legacy_windows=False, force_terminal=True)
192192
if diffs:
193193
snapshot_report_location = config._textual_snapshot_html_report
194-
console.rule("[b red]Textual Snapshot Report", style="red")
194+
console.print("[b red]Textual Snapshot Report", style="red")
195195
console.print(
196196
f"\n[black on red]{len(diffs)} mismatched snapshots[/]\n"
197197
f"\n[b]View the [link=file://{snapshot_report_location}]failure report[/].\n"
198198
)
199199
console.print(f"[dim]{snapshot_report_location}\n")
200-
console.rule(style="red")

tests/test_keys.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ def action_increment(self) -> None:
3737
app = BindApp()
3838
async with app.run_test() as pilot:
3939
await pilot.press(".")
40+
await pilot.pause()
4041
assert counter == 1
4142
await pilot.press("~")
43+
await pilot.pause()
4244
assert counter == 2
4345
await pilot.press(" ")
46+
await pilot.pause()
4447
assert counter == 3
4548
await pilot.press("x")
49+
await pilot.pause()
4650
assert counter == 3

0 commit comments

Comments
 (0)