This commit is contained in:
Will McGugan
2022-12-10 12:00:12 +00:00
parent 7a42f5ec48
commit 47ecb4b7b0

View 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"))