mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add clarifications.
This commit is contained in:
@@ -343,10 +343,12 @@ def test_scrollbar_thumb_height(snap_compare):
|
||||
|
||||
|
||||
def test_css_hot_reloading(snap_compare):
|
||||
"""Regression test for https://github.com/Textualize/textual/issues/2063."""
|
||||
|
||||
async def run_before(pilot):
|
||||
css_file = pilot.app.CSS_PATH
|
||||
with open(css_file, "w") as f:
|
||||
f.write("") # Clear all the CSS.
|
||||
f.write("/* This file is purposefully empty. */\n") # Clear all the CSS.
|
||||
await pilot.app._on_css_change()
|
||||
|
||||
assert snap_compare(
|
||||
|
||||
Reference in New Issue
Block a user