Skip to content

Commit

Permalink
post-rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imperosol committed Dec 19, 2024
1 parent 871ef60 commit a7b1406
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 234 deletions.
8 changes: 3 additions & 5 deletions counter/tests/test_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from pytest_django.asserts import assertNumQueries

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


Expand Down Expand Up @@ -51,16 +51,14 @@ def test_resize_product_icon(model):
(
lambda: baker.make(
User,
groups=[RealGroup.objects.get(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)],
groups=[Group.objects.get(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)],
),
200,
),
(
lambda: baker.make(
User,
groups=[
RealGroup.objects.get(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)
],
groups=[Group.objects.get(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)],
),
200,
),
Expand Down
8 changes: 3 additions & 5 deletions counter/tests/test_product_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ninja_extra.testing import TestClient

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.models import ProductType

Expand Down Expand Up @@ -70,16 +70,14 @@ def test_move_above_product_type(product_types: list[ProductType]):
(
lambda: baker.make(
User,
groups=[RealGroup.objects.get(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)],
groups=[Group.objects.get(pk=settings.SITH_GROUP_COUNTER_ADMIN_ID)],
),
200,
),
(
lambda: baker.make(
User,
groups=[
RealGroup.objects.get(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)
],
groups=[Group.objects.get(pk=settings.SITH_GROUP_ACCOUNTING_ADMIN_ID)],
),
200,
),
Expand Down
Loading

0 comments on commit a7b1406

Please sign in to comment.