b4w data factories and tests

This commit is contained in:
2026-09-06 12:23:03 +02:00
parent e8a8844b10
commit d1c22470bb
4 changed files with 28 additions and 15 deletions
+3 -6
View File
@@ -1,13 +1,10 @@
#!/bin/python
from collections.abc import Callable
from polyfactory.factories.pydantic_factory import ModelFactory
from src.models import B4wExport
CATEGORIES = [
"single_category",
"root_category:parent_category:leaf_category",
]
DEFAULT_CATEGORY = "root_category:parent_category:leaf_category"
class B4wExportFactory(ModelFactory[B4wExport]):
__model__ = B4wExport
...