Files
textual/tests/test_style_properties.py
Will McGugan 47ecb4b7b0 Test
2022-12-10 12:00:12 +00:00

10 lines
290 B
Python

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