mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
feat: Add Households to Mealie (#3970)
This commit is contained in:
parent
0c29cef17d
commit
eb170cc7e5
315 changed files with 6975 additions and 3577 deletions
7
tests/fixtures/fixture_multitenant.py
vendored
7
tests/fixtures/fixture_multitenant.py
vendored
|
@ -2,6 +2,7 @@ from dataclasses import dataclass
|
|||
|
||||
import pytest
|
||||
from fastapi.testclient import TestClient
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from tests import utils
|
||||
from tests.fixtures.fixture_users import build_unique_user
|
||||
|
@ -15,8 +16,8 @@ class MultiTenant:
|
|||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def multitenants(api_client: TestClient) -> MultiTenant:
|
||||
def multitenants(session: Session, api_client: TestClient) -> MultiTenant:
|
||||
yield MultiTenant(
|
||||
user_one=build_unique_user(random_string(12), api_client),
|
||||
user_two=build_unique_user(random_string(12), api_client),
|
||||
user_one=build_unique_user(session, random_string(12), api_client),
|
||||
user_two=build_unique_user(session, random_string(12), api_client),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue