mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 07:41:14 +00:00
post-rebase fix
This commit is contained in:
parent
871ef60cf6
commit
a7b1406e06
@ -13,7 +13,7 @@ from PIL import Image
|
|||||||
from pytest_django.asserts import assertNumQueries
|
from pytest_django.asserts import assertNumQueries
|
||||||
|
|
||||||
from core.baker_recipes import board_user, subscriber_user
|
from core.baker_recipes import board_user, subscriber_user
|
||||||
from core.models import RealGroup, User
|
from core.models import Group, User
|
||||||
from counter.models import Product, ProductType
|
from counter.models import Product, ProductType
|
||||||
|
|
||||||
|
|
||||||
@ -51,16 +51,14 @@ def test_resize_product_icon(model):
|
|||||||
(
|
(
|
||||||
lambda: baker.make(
|
lambda: baker.make(
|
||||||
User,
|
User,
|
||||||
groups=[RealGroup.objects.get(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)],
|
groups=[Group.objects.get(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)],
|
||||||
),
|
),
|
||||||
200,
|
200,
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
lambda: baker.make(
|
lambda: baker.make(
|
||||||
User,
|
User,
|
||||||
groups=[
|
groups=[Group.objects.get(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)],
|
||||||
RealGroup.objects.get(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
200,
|
200,
|
||||||
),
|
),
|
||||||
|
@ -6,7 +6,7 @@ from model_bakery import baker, seq
|
|||||||
from ninja_extra.testing import TestClient
|
from ninja_extra.testing import TestClient
|
||||||
|
|
||||||
from core.baker_recipes import board_user, subscriber_user
|
from core.baker_recipes import board_user, subscriber_user
|
||||||
from core.models import RealGroup, User
|
from core.models import Group, User
|
||||||
from counter.api import ProductTypeController
|
from counter.api import ProductTypeController
|
||||||
from counter.models import ProductType
|
from counter.models import ProductType
|
||||||
|
|
||||||
@ -70,16 +70,14 @@ def test_move_above_product_type(product_types: list[ProductType]):
|
|||||||
(
|
(
|
||||||
lambda: baker.make(
|
lambda: baker.make(
|
||||||
User,
|
User,
|
||||||
groups=[RealGroup.objects.get(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)],
|
groups=[Group.objects.get(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)],
|
||||||
),
|
),
|
||||||
200,
|
200,
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
lambda: baker.make(
|
lambda: baker.make(
|
||||||
User,
|
User,
|
||||||
groups=[
|
groups=[Group.objects.get(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)],
|
||||||
RealGroup.objects.get(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
200,
|
200,
|
||||||
),
|
),
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user