Implemented testing functions

This commit is contained in:
2025-10-25 22:35:15 +02:00
parent 06aff27cad
commit e12e4389b6
3 changed files with 686 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import dataclasses
import json
import uuid
from dataclasses import dataclass
@@ -15,6 +16,8 @@ from myfasthtml.core.commands import mount_commands
class MyFT:
tag: str
attrs: dict
children: list['MyFT'] = dataclasses.field(default_factory=list)
text: str | None = None
class TestableElement: