Move all sources mocks to the mocks.py module
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -9,6 +9,8 @@ from mayan.apps.storage.utils import mkdtemp
|
||||
|
||||
from ..classes import StagingFile
|
||||
|
||||
from .mocks import MockStagingFolder
|
||||
|
||||
|
||||
class StagingFileTestCase(BaseTestCase):
|
||||
def test_unicode_staging_file(self):
|
||||
@@ -17,9 +19,6 @@ class StagingFileTestCase(BaseTestCase):
|
||||
|
||||
filename = os.path.basename(TEST_NON_ASCII_DOCUMENT_PATH)
|
||||
|
||||
class MockStagingFolder(object):
|
||||
self.folder_path = temporary_directory
|
||||
|
||||
staging_file_1 = StagingFile(
|
||||
staging_folder=MockStagingFolder(),
|
||||
filename=filename
|
||||
|
||||
Reference in New Issue
Block a user