1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-21 06:09:40 +02:00
mealie/tests/utils/fixture_schemas.py

29 lines
601 B
Python
Raw Normal View History

from dataclasses import dataclass
from typing import Any
from uuid import UUID
from mealie.db.models.users.users import AuthMethod
2024-08-22 10:14:32 -05:00
from mealie.repos.repository_factory import AllRepositories
@dataclass
class TestUser:
email: str
user_id: UUID
username: str
full_name: str
password: str
_group_id: UUID
2024-08-22 10:14:32 -05:00
_household_id: UUID
token: Any
auth_method = AuthMethod.MEALIE
2024-08-22 10:14:32 -05:00
repos: AllRepositories
@property
def group_id(self) -> str:
return str(self._group_id)
2024-08-22 10:14:32 -05:00
@property
def household_id(self) -> str:
return str(self._household_id)