Skip to content

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

Drop test discovery

Patryk Zawadzki81fe2314ce15
diff --git a/setup.py b/setup.py
index 9fe5c07e41..44eaa812fe 100755
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,5 @@ setup(
'console_scripts': ['saleor = shop:manage']},
tests_require=[
'mock==1.0.1',
- 'purl>=0.4.1',
- 'unittest2'],
- test_suite='unittest2.collector')
+ 'purl>=0.4.1'],
+ test_suite='shop.tests.suite')
diff --git a/shop/core/templatetags/saleor.py b/shop/core/templatetags/shop.py
similarity index 100%
rename from shop/core/templatetags/saleor.py
rename to shop/core/templatetags/shop.py
diff --git a/shop/product/templates/category/index.html b/shop/product/templates/category/index.html
index e777f3eb45..da274dd593 100644
--- a/shop/product/templates/category/index.html
+++ b/shop/product/templates/category/index.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% load i18n %}
{% load at_size from images %}
-{% load slice from saleor %}
+{% load slice from shop %}
{% block title %}{{ block.super }} » {% trans "Category" %} {{ category }}{% endblock %}
diff --git a/shop/registration/utils.py b/shop/registration/utils.py
index 467efe6786..f40591a331 100644
--- a/shop/registration/utils.py
+++ b/shop/registration/utils.py
@@ -10,7 +10,7 @@ import urlparse
GOOGLE, FACEBOOK = 'google', 'facebook'
JSON_MIME_TYPE = 'application/json'
-logger = logging.getLogger('saleor.registration')
+logger = logging.getLogger('shop.registration')
User = get_user_model()
diff --git a/shop/tests.py b/shop/tests.py
new file mode 100644
index 0000000000..bd71fabef5
--- /dev/null
+++ b/shop/tests.py
@@ -0,0 +1,18 @@
+from unittest import TestSuite, TestLoader
+
+TEST_MODULES = [
+ 'shop.cart.tests',
+ 'shop.checkout.tests',
+ 'shop.communication.tests',
+ 'shop.core.tests',
+ #'shop.delivery.tests',
+ 'shop.order.tests',
+ #'shop.payment.tests',
+ #'shop.product.tests',
+ 'shop.registration.tests',
+ 'shop.userprofile.tests']
+
+suite = TestSuite()
+loader = TestLoader()
+for module in TEST_MODULES:
+ suite.addTests(loader.loadTestsFromName(module))
diff --git a/shop/wsgi.py b/shop/wsgi.py
index 69d2868f85..383d859737 100644
--- a/shop/wsgi.py
+++ b/shop/wsgi.py
@@ -15,7 +15,7 @@ framework.
"""
import os
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "saleor.settings")
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shop.settings")
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION