mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 07:09:41 +02:00
fix: Tools Shouldn't Be Unique Across Groups (#2505)
* fixed type/abc errors in tests * fixed false positive multitentant tests * fix tools not allowing unique slugs across groups * fixed alembic refs --------- Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
parent
99e7717fec
commit
c9cc7a93c8
9 changed files with 62 additions and 29 deletions
|
@ -10,17 +10,18 @@ class ABCMultiTenantTestCase(ABC):
|
|||
def __init__(self, database: AllRepositories, client: TestClient) -> None:
|
||||
self.database = database
|
||||
self.client = client
|
||||
self.items = []
|
||||
self.items: list = []
|
||||
|
||||
@abstractmethod
|
||||
def seed_action(repos: AllRepositories, group_id: str) -> set[int] | set[str]:
|
||||
def seed_action(self, group_id: str) -> set[int] | set[str]:
|
||||
...
|
||||
|
||||
def seed_multi(self, group1_id: str, group2_id: str) -> tuple[set[int], set[int]]:
|
||||
pass
|
||||
@abstractmethod
|
||||
def seed_multi(self, group1_id: str, group2_id: str) -> tuple[set[str], set[str]]:
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
def get_all(token: str) -> Response:
|
||||
def get_all(self, token: str) -> Response:
|
||||
...
|
||||
|
||||
@abstractmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue