Cleanup source app test literals.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-09-11 00:00:52 -04:00
parent da8fa6f91c
commit 02f28b1ac0
2 changed files with 11 additions and 6 deletions

View File

@@ -29,9 +29,9 @@ from ..permissions import (
permission_sources_setup_view, permission_staging_file_delete
)
TEST_SOURCE_LABEL = 'test source'
TEST_SOURCE_UNCOMPRESS_N = 'n'
TEST_STAGING_PREVIEW_WIDTH = 640
from .literals import (
TEST_SOURCE_LABEL, TEST_SOURCE_UNCOMPRESS_N, TEST_STAGING_PREVIEW_WIDTH
)
class DocumentUploadTestCase(GenericDocumentViewTestCase):
@@ -253,9 +253,9 @@ class NewDocumentVersionViewTestCase(GenericDocumentViewTestCase):
self.assertEqual(resolved_link, None)
class StagingFolderTestCase(GenericViewTestCase):
class StagingFolderViewTestCase(GenericViewTestCase):
def setUp(self):
super(StagingFolderTestCase, self).setUp()
super(StagingFolderViewTestCase, self).setUp()
self.temporary_directory = mkdtemp()
shutil.copy(TEST_SMALL_DOCUMENT_PATH, self.temporary_directory)
@@ -263,7 +263,7 @@ class StagingFolderTestCase(GenericViewTestCase):
def tearDown(self):
fs_cleanup(self.temporary_directory)
super(StagingFolderTestCase, self).tearDown()
super(StagingFolderViewTestCase, self).tearDown()
def test_staging_folder_delete_no_permission(self):
self.login_user()