Fix failing tests

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-12-11 01:45:42 -04:00
parent 856a24e9db
commit 8cfb457cf1
3 changed files with 5 additions and 12 deletions

View File

@@ -7,7 +7,6 @@ from django.utils.encoding import force_text
from mayan.apps.common.settings import setting_paginate_by
from mayan.apps.common.tests.base import BaseTestCase
from mayan.apps.common.tests.mixins import EnvironmentTestCaseMixin
from mayan.apps.storage.utils import fs_cleanup
from ..classes import Setting
@@ -23,9 +22,7 @@ from .mocks import (
)
class ClassesTestCase(
EnvironmentTestCaseMixin, SmartSettingTestMixin, BaseTestCase
):
class ClassesTestCase(SmartSettingTestMixin, BaseTestCase):
def test_environment_override(self):
test_environment_value = 'test environment value'
test_file_value = 'test file value'
@@ -84,9 +81,7 @@ class ClassesTestCase(
self.assertTrue(Setting.check_changed())
class NamespaceMigrationTestCase(
EnvironmentTestCaseMixin, SmartSettingTestMixin, BaseTestCase
):
class NamespaceMigrationTestCase(SmartSettingTestMixin, BaseTestCase):
def test_environment_migration(self):
self._set_environment_variable(
name='MAYAN_{}'.format(TEST_SETTING_GLOBAL_NAME),

View File

@@ -1,7 +1,6 @@
from __future__ import absolute_import, unicode_literals
from mayan.apps.common.tests.base import BaseTestCase
from mayan.apps.common.tests.mixins import EnvironmentTestCaseMixin
from .literals import (
TEST_BOOTSTAP_SETTING_NAME, TEST_SETTING_VALUE,
@@ -11,8 +10,7 @@ from .mixins import BoostrapSettingTestMixin, SmartSettingTestMixin
class BoostrapSettingTestCase(
BoostrapSettingTestMixin, EnvironmentTestCaseMixin,
SmartSettingTestMixin, BaseTestCase
BoostrapSettingTestMixin, SmartSettingTestMixin, BaseTestCase
):
def setUp(self):
super(BoostrapSettingTestCase, self).setUp()

View File

@@ -34,7 +34,7 @@ class WebLinkViewTestMixin(object):
return self.post(
viewname='web_links:web_link_create', data={
'label': TEST_WEB_LINK_LABEL,
'template': TEST_WEB_LINK_TEMPLATE
'template_template': TEST_WEB_LINK_TEMPLATE,
}
)
@@ -51,7 +51,7 @@ class WebLinkViewTestMixin(object):
'pk': self.test_web_link.pk
}, data={
'label': TEST_WEB_LINK_LABEL_EDITED,
'template': TEST_WEB_LINK_TEMPLATE
'template_template': TEST_WEB_LINK_TEMPLATE
}
)