mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove old test code from css/tokenize.py
This is covered in unit tests these days.
This commit is contained in:
@@ -197,18 +197,3 @@ def tokenize_values(values: dict[str, str]) -> dict[str, list[Token]]:
|
||||
name: list(tokenize_value(value, "__name__")) for name, value in values.items()
|
||||
}
|
||||
return value_tokens
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from rich import print
|
||||
|
||||
css = """#something {
|
||||
|
||||
color: rgb(10,12,23)
|
||||
}
|
||||
"""
|
||||
# transition: offset 500 in_out_cubic;
|
||||
tokens = tokenize(css, __name__)
|
||||
print(list(tokens))
|
||||
|
||||
print(tokenize_values({"primary": "rgb(10,20,30)", "secondary": "#ff00ff"}))
|
||||
|
||||
Reference in New Issue
Block a user