mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 05:25:26 +02:00
update foods and units for multitenant support
This commit is contained in:
parent
fbc17b670d
commit
9a82a172cb
11 changed files with 194 additions and 15 deletions
22
tests/fixtures/fixture_multitenant.py
vendored
Normal file
22
tests/fixtures/fixture_multitenant.py
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
import pytest
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from tests import utils
|
||||
from tests.fixtures.fixture_users import build_unique_user
|
||||
from tests.utils.factories import random_string
|
||||
|
||||
|
||||
@dataclass
|
||||
class MultiTenant:
|
||||
user_one: utils.TestUser
|
||||
user_two: utils.TestUser
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def multitenants(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),
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue