forked from DGNum/gestioCOF
Black v20
This commit is contained in:
parent
1d707aad41
commit
0875ef1278
13 changed files with 49 additions and 31 deletions
|
@ -41,7 +41,9 @@ class Command(MyBaseCommand):
|
|||
group_chef.save()
|
||||
group_boy.save()
|
||||
|
||||
permissions_chef = Permission.objects.filter(content_type__app_label="kfet",)
|
||||
permissions_chef = Permission.objects.filter(
|
||||
content_type__app_label="kfet",
|
||||
)
|
||||
permissions_boy = Permission.objects.filter(
|
||||
content_type__app_label="kfet", codename__in=["is_team", "perform_deposit"]
|
||||
)
|
||||
|
|
|
@ -1778,7 +1778,8 @@ class KPsulPerformOperationsViewTests(ViewTestCaseMixin, TestCase):
|
|||
# Another Article, price=2.5, stock=20, no COF reduction
|
||||
self.article_no_reduction = Article.objects.create(
|
||||
category=ArticleCategory.objects.create(
|
||||
name="Category_no_reduction", has_reduction=False,
|
||||
name="Category_no_reduction",
|
||||
has_reduction=False,
|
||||
),
|
||||
name="Article_no_reduction",
|
||||
price=Decimal("2.5"),
|
||||
|
@ -3799,7 +3800,8 @@ class KPsulCancelOperationsViewTests(ViewTestCaseMixin, TestCase):
|
|||
self.assertEqual(self.checkout.balance, Decimal("100.00"))
|
||||
|
||||
self.kpsul_consumer_mock.group_send.assert_called_with(
|
||||
"kfet.kpsul", {"checkouts": [], "articles": []},
|
||||
"kfet.kpsul",
|
||||
{"checkouts": [], "articles": []},
|
||||
)
|
||||
|
||||
@mock.patch("django.utils.timezone.now")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue