mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04: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:
@@ -28,9 +28,9 @@ class FoodsTestCase(ABCMultiTenantTestCase):
|
||||
g1_item_ids: set[str] = set()
|
||||
g2_item_ids: set[str] = set()
|
||||
|
||||
for group_id, item_ids in [(group1_id, g1_item_ids), (group2_id, g2_item_ids)]:
|
||||
for _ in range(10):
|
||||
name = utils.random_string(10)
|
||||
for _ in range(10):
|
||||
name = utils.random_string(10)
|
||||
for group_id, item_ids in [(group1_id, g1_item_ids), (group2_id, g2_item_ids)]:
|
||||
food = self.database.ingredient_foods.create(
|
||||
SaveIngredientFood(
|
||||
group_id=group_id,
|
||||
|
||||
Reference in New Issue
Block a user