Skip to content

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

Move api webhook tests

fowczrekf9d669c90370
diff --git a/saleor/graphql/webhook/tests/__init__.py b/saleor/graphql/webhook/tests/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/api/test_webhook.py b/saleor/graphql/webhook/tests/test_webhook.py
similarity index 99%
rename from tests/api/test_webhook.py
rename to saleor/graphql/webhook/tests/test_webhook.py
index bb0b902a38..cf562d3d6f 100644
--- a/tests/api/test_webhook.py
+++ b/saleor/graphql/webhook/tests/test_webhook.py
@@ -10,8 +10,7 @@ from saleor.graphql.webhook.enums import (
)
from saleor.webhook.event_types import WebhookEventType
from saleor.webhook.models import Webhook
-
-from .utils import assert_no_permission, get_graphql_content
+from tests.api.utils import assert_no_permission, get_graphql_content
WEBHOOK_CREATE_BY_APP = """
mutation webhookCreate($name: String, $target_url: String,
diff --git a/tests/api/test_webhook_deprecated_service_account.py b/saleor/graphql/webhook/tests/test_webhook_deprecated_service_account.py
similarity index 98%
rename from tests/api/test_webhook_deprecated_service_account.py
rename to saleor/graphql/webhook/tests/test_webhook_deprecated_service_account.py
index 2f5eaaecf8..7758a85224 100644
--- a/tests/api/test_webhook_deprecated_service_account.py
+++ b/saleor/graphql/webhook/tests/test_webhook_deprecated_service_account.py
@@ -4,9 +4,9 @@ import pytest
from saleor.app.models import App
from saleor.graphql.webhook.enums import WebhookEventTypeEnum
from saleor.webhook.models import Webhook
+from tests.api.utils import assert_no_permission, get_graphql_content
from .test_webhook import QUERY_WEBHOOKS_WITH_SORT
-from .utils import assert_no_permission, get_graphql_content
WEBHOOK_CREATE_BY_STAFF = """
mutation webhookCreate(