mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
test fix
This commit is contained in:
@@ -4,7 +4,8 @@ import pytest
|
||||
|
||||
|
||||
from textual.color import Color
|
||||
from textual.css.parse import substitute_references, TokenError
|
||||
from textual.css.errors import UnresolvedVariableError
|
||||
from textual.css.parse import substitute_references
|
||||
from textual.css.scalar import Scalar, Unit
|
||||
from textual.css.stylesheet import Stylesheet, StylesheetParseError
|
||||
from textual.css.tokenize import tokenize
|
||||
@@ -213,7 +214,7 @@ class TestVariableReferenceSubstitution:
|
||||
|
||||
def test_undefined_variable(self):
|
||||
css = ".thing { border: $not-defined; }"
|
||||
with pytest.raises(TokenError):
|
||||
with pytest.raises(UnresolvedVariableError):
|
||||
list(substitute_references(tokenize(css, "")))
|
||||
|
||||
def test_transitive_reference(self):
|
||||
|
||||
Reference in New Issue
Block a user