Skip to content

Commit ef2281c

Browse files
committed
snapshot
1 parent c73016f commit ef2281c

File tree

2 files changed

+160
-4
lines changed

2 files changed

+160
-4
lines changed
Lines changed: 152 additions & 0 deletions
Loading

tests/snapshot_tests/test_snapshots.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ async def run_before(pilot):
122122
pilot.app.query(Input).first().cursor_blink = False
123123

124124
assert snap_compare(
125-
SNAPSHOT_APPS_DIR / "masked_input.py", press=["A","B","C","0","1","-","D","E"], run_before=run_before
125+
SNAPSHOT_APPS_DIR / "masked_input.py",
126+
press=["A", "B", "C", "0", "1", "-", "D", "E"],
127+
run_before=run_before,
126128
)
127129

128130

@@ -1688,7 +1690,9 @@ def on_mount(self) -> None:
16881690
assert snap_compare(TextAreaExample(), press=["ctrl+m", "escape"])
16891691

16901692

1691-
async def test_app_focus_style(snap_compare):
1693+
def test_app_focus_style(snap_compare):
1694+
"""Test that app blur style can be selected."""
1695+
16921696
class FocusApp(App):
16931697
CSS = """
16941698
Label {
@@ -1700,13 +1704,13 @@ class FocusApp(App):
17001704
App:focus {
17011705
.blurred {
17021706
visibility: hidden;
1703-
}
1707+
}
17041708
}
17051709
17061710
App:blur {
17071711
.focussed {
17081712
visibility: hidden;
1709-
}
1713+
}
17101714
}
17111715
17121716
"""

0 commit comments

Comments
 (0)