diff --git a/orchestra/apps/orders/tests/__init__.py b/orchestra/apps/orders/tests/__init__.py new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/orchestra/apps/orders/tests/__init__.py @@ -0,0 +1 @@ + diff --git a/orchestra/apps/services/tests/functional_tests/__init__.py b/orchestra/apps/orders/tests/functional_tests/__init__.py similarity index 100% rename from orchestra/apps/services/tests/functional_tests/__init__.py rename to orchestra/apps/orders/tests/functional_tests/__init__.py diff --git a/orchestra/apps/services/tests/functional_tests/tests.py b/orchestra/apps/orders/tests/functional_tests/tests.py similarity index 93% rename from orchestra/apps/services/tests/functional_tests/tests.py rename to orchestra/apps/orders/tests/functional_tests/tests.py index 04193c0d..555f50c9 100644 --- a/orchestra/apps/services/tests/functional_tests/tests.py +++ b/orchestra/apps/orders/tests/functional_tests/tests.py @@ -7,16 +7,15 @@ from django.contrib.contenttypes.models import ContentType from django.utils import timezone from orchestra.apps.accounts.models import Account +from orchestra.apps.services.models import Service +from orchestra.apps.services import settings as services_settings from orchestra.apps.users.models import User from orchestra.utils.tests import BaseTestCase, random_ascii -from ... import settings -from ...models import Service - class ServiceTests(BaseTestCase): DEPENDENCIES = ( - 'orchestra.apps.orders', + 'orchestra.apps.services', 'orchestra.apps.users', 'orchestra.apps.users.roles.posix', ) @@ -80,7 +79,7 @@ class ServiceTests(BaseTestCase): service = self.create_ftp_service() self.create_ftp() now = timezone.now() - bp_month = settings.SERVICES_SERVICE_ANUAL_BILLING_MONTH + bp_month = services_settings.SERVICES_SERVICE_ANUAL_BILLING_MONTH if now.month > bp_month: bp = datetime.datetime(year=now.year+1, month=bp_month, day=1, tzinfo=timezone.get_current_timezone())