mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-24 01:12:54 -04:00
* add default assets for user profile * add recipe avatar * change user_id to UUID * add profile image upload * setup image cache keys * cleanup tests and add image tests * purge user data on delete * new user repository tests * add user_id validator for int -> UUID conversion * delete depreciated route * force set content type * refactor tests to use temp directory * validate parent exists before createing * set user_id to correct type * update instruction id * reset primary key on migration
16 lines
257 B
Python
16 lines
257 B
Python
from dataclasses import dataclass
|
|
from typing import Any
|
|
from uuid import UUID
|
|
|
|
|
|
@dataclass
|
|
class TestUser:
|
|
email: str
|
|
user_id: UUID
|
|
_group_id: UUID
|
|
token: Any
|
|
|
|
@property
|
|
def group_id(self) -> str:
|
|
return str(self._group_id)
|