Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Drop unused imports

Cezary Miącz748a7cbc891f
diff --git a/saleor/plugins/webhook/tests/test_payment_webhook.py b/saleor/plugins/webhook/tests/test_payment_webhook.py
index c8f0e7f14b..f6520eb3b2 100644
--- a/saleor/plugins/webhook/tests/test_payment_webhook.py
+++ b/saleor/plugins/webhook/tests/test_payment_webhook.py
@@ -6,7 +6,6 @@ from unittest import mock
import pytest
from django.conf import settings
from django.contrib.sites.models import Site
-from django.core.files.base import ContentFile
from django.utils import timezone
from requests import RequestException, TooManyRedirects
from requests_hardened import HTTPSession
diff --git a/saleor/plugins/webhook/tests/test_tasks.py b/saleor/plugins/webhook/tests/test_tasks.py
index af8d3bc7c0..bc55f0ec84 100644
--- a/saleor/plugins/webhook/tests/test_tasks.py
+++ b/saleor/plugins/webhook/tests/test_tasks.py
@@ -3,7 +3,6 @@ from decimal import Decimal
from unittest import mock
import pytest
-from django.core.files.base import ContentFile
from django.utils import timezone
from freezegun import freeze_time
from graphene import Node
diff --git a/saleor/tests/fixtures.py b/saleor/tests/fixtures.py
index 55081bd90b..917e40ff52 100644
--- a/saleor/tests/fixtures.py
+++ b/saleor/tests/fixtures.py
@@ -17,7 +17,6 @@ import pytz
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.files import File
-from django.core.files.base import ContentFile
from django.core.files.uploadedfile import SimpleUploadedFile
from django.db import connection
from django.template.defaultfilters import truncatechars
diff --git a/saleor/webhook/transport/asynchronous/transport.py b/saleor/webhook/transport/asynchronous/transport.py
index 787574ba6c..c0130dd86c 100644
--- a/saleor/webhook/transport/asynchronous/transport.py
+++ b/saleor/webhook/transport/asynchronous/transport.py
@@ -8,7 +8,6 @@ from urllib.parse import urlparse
from celery import group
from celery.utils.log import get_task_logger
from django.conf import settings
-from django.core.files.base import ContentFile
from ....celeryconf import app
from ....core import EventDeliveryStatus
diff --git a/saleor/webhook/transport/synchronous/transport.py b/saleor/webhook/transport/synchronous/transport.py
index 58ca196757..a111a7c2c5 100644
--- a/saleor/webhook/transport/synchronous/transport.py
+++ b/saleor/webhook/transport/synchronous/transport.py
@@ -7,7 +7,6 @@ from urllib.parse import urlparse
from celery.utils.log import get_task_logger
from django.conf import settings
from django.core.cache import cache
-from django.core.files.base import ContentFile
from ....celeryconf import app
from ....core import EventDeliveryStatus
diff --git a/saleor/webhook/transport/utils.py b/saleor/webhook/transport/utils.py
index 90cb129f55..e1488c160f 100644
--- a/saleor/webhook/transport/utils.py
+++ b/saleor/webhook/transport/utils.py
@@ -15,7 +15,6 @@ from celery import Task
from celery.exceptions import MaxRetriesExceededError, Retry
from celery.utils.log import get_task_logger
from django.conf import settings
-from django.core.files.base import ContentFile
from django.urls import reverse
from google.cloud import pubsub_v1
from requests import RequestException