Fixed unit tests

This commit is contained in:
2026-03-11 20:59:07 +01:00
parent e01d2cd74b
commit e704dad62c
15 changed files with 353 additions and 679 deletions

View File

@@ -1,4 +1,5 @@
from myfasthtml.controls.IconsHelper import IconsHelper
from myfasthtml.test.matcher import matches, TestIconNotStr
def test_existing_icon():
@@ -13,8 +14,7 @@ def test_dynamic_icon():
def test_unknown_icon():
IconsHelper.reset()
assert IconsHelper.get("does_not_exist") is None
assert matches(IconsHelper.get("does_not_exist"), TestIconNotStr("Question20Regular"))
def test_dynamic_icon_by_package():