Skip to content

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

Move products test

fowczrekfcac0c822566
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 26e33da90d..38ec78940e 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -43,6 +43,7 @@ repos:
hooks:
- id: mypy
language: system
+ exclude: tests/
- repo: local
hooks:
diff --git a/saleor/product/tests/__init__.py b/saleor/product/tests/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/test_category.py b/saleor/product/tests/test_category.py
similarity index 100%
rename from tests/test_category.py
rename to saleor/product/tests/test_category.py
diff --git a/tests/test_product.py b/saleor/product/tests/test_product.py
similarity index 100%
rename from tests/test_product.py
rename to saleor/product/tests/test_product.py
diff --git a/tests/test_product_attributes.py b/saleor/product/tests/test_product_attributes.py
similarity index 100%
rename from tests/test_product_attributes.py
rename to saleor/product/tests/test_product_attributes.py
diff --git a/tests/test_product_availability.py b/saleor/product/tests/test_product_availability.py
similarity index 100%
rename from tests/test_product_availability.py
rename to saleor/product/tests/test_product_availability.py
diff --git a/tests/test_product_minimal_variant_price.py b/saleor/product/tests/test_product_minimal_variant_price.py
similarity index 100%
rename from tests/test_product_minimal_variant_price.py
rename to saleor/product/tests/test_product_minimal_variant_price.py
diff --git a/tests/test_product_tags.py b/saleor/product/tests/test_product_tags.py
similarity index 100%
rename from tests/test_product_tags.py
rename to saleor/product/tests/test_product_tags.py
diff --git a/tests/fixtures.py b/tests/fixtures.py
index 3c3c442dd7..1969c1c450 100644
--- a/tests/fixtures.py
+++ b/tests/fixtures.py
@@ -1,4 +1,3 @@
-
import datetime
import uuid
from contextlib import contextmanager