mealie/tests/utils/fixture_schemas.py
Carter 2e6ad5da8e
Feature: Add "Authentication Method" to allow existing users to sign in with LDAP (#2143)
* adds authentication method for users

* fix db migration with postgres

* tests for auth method

* update migration ids

* hide auth method on user creation form

* (docs): Added documentation for the new authentication method

* update migration

* add  to auto-form instead of having hidden fields
2023-02-26 10:12:16 -09:00

21 lines
382 B
Python

from dataclasses import dataclass
from typing import Any
from uuid import UUID
from mealie.db.models.users.users import AuthMethod
@dataclass
class TestUser:
email: str
user_id: UUID
username: str
password: str
_group_id: UUID
token: Any
auth_method = AuthMethod.MEALIE
@property
def group_id(self) -> str:
return str(self._group_id)