18 lines
425 B
Python
18 lines
425 B
Python
from app.factories import Factory, random_string
|
|
from app.models.plan import Plan
|
|
|
|
|
|
class PlanFactory(Factory):
|
|
model = Plan
|
|
|
|
def definition(self) -> dict:
|
|
return {
|
|
"id": None,
|
|
"code": random_string(6),
|
|
"name": f"Plan {random_string(6).title()}",
|
|
"description": None,
|
|
"price": 0,
|
|
"limits": None,
|
|
"is_active": True,
|
|
}
|