mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
fix for win
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user