mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Test
This commit is contained in:
9
tests/test_style_properties.py
Normal file
9
tests/test_style_properties.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from textual.color import Color
|
||||
from textual.css.styles import Styles
|
||||
|
||||
|
||||
def test_box_normalization():
|
||||
"""Check that none or hidden is normalized to empty string."""
|
||||
styles = Styles()
|
||||
styles.border_left = ("none", "red")
|
||||
assert styles.border_left == ("", Color.parse("red"))
|
||||
Reference in New Issue
Block a user