mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Parsing variable values as individual tokens
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
import pytest
|
||||
from rich.color import Color, ColorType
|
||||
|
||||
# from textual.css.parse import _resolve_variables
|
||||
from textual.css.scalar import Scalar, Unit
|
||||
from textual.css.stylesheet import Stylesheet, StylesheetParseError
|
||||
from textual.css.tokenize import tokenize
|
||||
from textual.css.transition import Transition
|
||||
from textual.layouts.dock import DockLayout
|
||||
|
||||
|
||||
# class TestVariableResolution:
|
||||
# def test_resolve_single_variable(self):
|
||||
# css = "$x: 1;"
|
||||
# variables = _resolve_variables(tokenize(css, ""))
|
||||
# assert variables == {"x": }
|
||||
|
||||
|
||||
class TestParseLayout:
|
||||
def test_valid_layout_name(self):
|
||||
css = "#some-widget { layout: dock; }"
|
||||
|
||||
Reference in New Issue
Block a user