From 2c5643e929df72e02c10ead0a8ddf03c050af7de Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Mon, 4 Dec 2023 17:09:12 +0100 Subject: [PATCH] fix: format --- server/vbv_lernwelt/shop/tests/test_checkout_api.py | 6 +----- server/vbv_lernwelt/shop/tests/test_datatrans_webhook.py | 6 +----- server/vbv_lernwelt/shop/views.py | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/server/vbv_lernwelt/shop/tests/test_checkout_api.py b/server/vbv_lernwelt/shop/tests/test_checkout_api.py index 633a937b..83d04f08 100644 --- a/server/vbv_lernwelt/shop/tests/test_checkout_api.py +++ b/server/vbv_lernwelt/shop/tests/test_checkout_api.py @@ -6,11 +6,7 @@ from rest_framework.test import APITestCase from vbv_lernwelt.core.admin import User from vbv_lernwelt.shop.const import VV_DE_PRODUCT_SKU -from vbv_lernwelt.shop.models import ( - CheckoutInformation, - CheckoutState, - Product, -) +from vbv_lernwelt.shop.models import CheckoutInformation, CheckoutState, Product from vbv_lernwelt.shop.services import InitTransactionException USER_USERNAME = "testuser" diff --git a/server/vbv_lernwelt/shop/tests/test_datatrans_webhook.py b/server/vbv_lernwelt/shop/tests/test_datatrans_webhook.py index 4f30264f..5f75c671 100644 --- a/server/vbv_lernwelt/shop/tests/test_datatrans_webhook.py +++ b/server/vbv_lernwelt/shop/tests/test_datatrans_webhook.py @@ -9,11 +9,7 @@ from vbv_lernwelt.course.consts import COURSE_VERSICHERUNGSVERMITTLERIN_ID from vbv_lernwelt.course.creators.test_utils import create_course, create_course_session from vbv_lernwelt.course.models import CourseSessionUser from vbv_lernwelt.shop.const import VV_DE_PRODUCT_SKU -from vbv_lernwelt.shop.models import ( - CheckoutInformation, - CheckoutState, - Product, -) +from vbv_lernwelt.shop.models import CheckoutInformation, CheckoutState, Product def create_checkout_information( diff --git a/server/vbv_lernwelt/shop/views.py b/server/vbv_lernwelt/shop/views.py index 319606f0..981f658e 100644 --- a/server/vbv_lernwelt/shop/views.py +++ b/server/vbv_lernwelt/shop/views.py @@ -6,8 +6,8 @@ from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from vbv_lernwelt.course.consts import ( - COURSE_VERSICHERUNGSVERMITTLERIN_ID, COURSE_VERSICHERUNGSVERMITTLERIN_FR_ID, + COURSE_VERSICHERUNGSVERMITTLERIN_ID, COURSE_VERSICHERUNGSVERMITTLERIN_IT_ID, ) from vbv_lernwelt.course.models import CourseSession, CourseSessionUser