Skip to content

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

Refactor import in api webhook tests

fowczrek542a5c339740
diff --git a/saleor/graphql/webhook/tests/test_pagination.py b/saleor/graphql/webhook/tests/test_pagination.py
index 0cf356ce1b..faf2c0a7bf 100644
--- a/saleor/graphql/webhook/tests/test_pagination.py
+++ b/saleor/graphql/webhook/tests/test_pagination.py
@@ -1,8 +1,8 @@
import pytest
-from saleor.app.models import App
-from saleor.graphql.tests.utils import get_graphql_content
-from saleor.webhook.models import Webhook
+from ....app.models import App
+from ....webhook.models import Webhook
+from ...tests.utils import get_graphql_content
@pytest.fixture
diff --git a/saleor/graphql/webhook/tests/test_webhook.py b/saleor/graphql/webhook/tests/test_webhook.py
index c9e1d283d5..2552b05323 100644
--- a/saleor/graphql/webhook/tests/test_webhook.py
+++ b/saleor/graphql/webhook/tests/test_webhook.py
@@ -3,14 +3,11 @@ from unittest.mock import patch
import graphene
import pytest
-from saleor.app.models import App
-from saleor.graphql.tests.utils import assert_no_permission, get_graphql_content
-from saleor.graphql.webhook.enums import (
- WebhookEventTypeEnum,
- WebhookSampleEventTypeEnum,
-)
-from saleor.webhook.event_types import WebhookEventType
-from saleor.webhook.models import Webhook
+from ....app.models import App
+from ....webhook.event_types import WebhookEventType
+from ....webhook.models import Webhook
+from ...tests.utils import assert_no_permission, get_graphql_content
+from ..enums import WebhookEventTypeEnum, WebhookSampleEventTypeEnum
WEBHOOK_CREATE_BY_APP = """
mutation webhookCreate($name: String, $target_url: String,
diff --git a/saleor/graphql/webhook/tests/test_webhook_deprecated_service_account.py b/saleor/graphql/webhook/tests/test_webhook_deprecated_service_account.py
index 6798aab9c4..7ff8bce940 100644
--- a/saleor/graphql/webhook/tests/test_webhook_deprecated_service_account.py
+++ b/saleor/graphql/webhook/tests/test_webhook_deprecated_service_account.py
@@ -1,11 +1,10 @@
import graphene
import pytest
-from saleor.app.models import App
-from saleor.graphql.tests.utils import assert_no_permission, get_graphql_content
-from saleor.graphql.webhook.enums import WebhookEventTypeEnum
-from saleor.webhook.models import Webhook
-
+from ....app.models import App
+from ....webhook.models import Webhook
+from ...tests.utils import assert_no_permission, get_graphql_content
+from ..enums import WebhookEventTypeEnum
from .test_webhook import QUERY_WEBHOOKS_WITH_SORT
WEBHOOK_CREATE_BY_STAFF = """