Add remaining setting migration tests
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -11,7 +11,9 @@ from mayan.apps.storage.utils import NamedTemporaryFile
|
||||
from ..settings import setting_storage_backend_arguments
|
||||
|
||||
|
||||
class SourceSettingMigrationTestCase(EnvironmentTestCaseMixin, BaseTestCase):
|
||||
class DocumentSignaturesSettingMigrationTestCase(
|
||||
EnvironmentTestCaseMixin, BaseTestCase
|
||||
):
|
||||
def test_signatures_storage_backend_arguments_0001_migration(self):
|
||||
|
||||
test_value = {'location': 'test value'}
|
||||
@@ -22,7 +24,9 @@ class SourceSettingMigrationTestCase(EnvironmentTestCaseMixin, BaseTestCase):
|
||||
force_bytes(
|
||||
'{}: {}'.format(
|
||||
'SIGNATURES_STORAGE_BACKEND_ARGUMENTS',
|
||||
'"{}"'.format(Setting.serialize_value(value=test_value))
|
||||
'"{}"'.format(
|
||||
Setting.serialize_value(value=test_value)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user