fix naming

This commit is contained in:
2026-03-29 16:42:55 -07:00
parent c3bb34d248
commit f2be62ac46
51 changed files with 0 additions and 0 deletions

14
tests/node_tests/font.py Normal file
View File

@@ -0,0 +1,14 @@
def test_font_node():
from backend.nodes.font import Font
from backend.data_types import CUSTOM_FILE_FONT, SYSTEM_DEFAULT_FONT
node = Font()
system_default, = node.build(SYSTEM_DEFAULT_FONT)
assert system_default is None
named, = node.build("Arial")
assert named == {"family": "Arial", "path": ""}
custom, = node.build(CUSTOM_FILE_FONT, "/tmp/example-font.ttf")
assert custom == {"family": "", "path": "/tmp/example-font.ttf"}