Fixed unit tests
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user