Fix document view test mixin

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-10-13 16:09:54 -04:00
parent 756765ce4a
commit 9e2ef57e00

View File

@@ -76,13 +76,6 @@ class DocumentTestMixin(object):
class DocumentTypeViewTestMixin(object):
def _create_document_transformation(self):
layer_saved_transformations.add_transformation_to(
obj=self.test_document.pages.first(),
transformation_class=TEST_TRANSFORMATION_CLASS,
arguments=TEST_TRANSFORMATION_ARGUMENT
)
def _request_test_document_type_create_view(self):
return self.post(
viewname='documents:document_type_create',
@@ -160,6 +153,13 @@ class DocumentVersionTestMixin(object):
class DocumentViewTestMixin(object):
def _create_document_transformation(self):
layer_saved_transformations.add_transformation_to(
obj=self.test_document.pages.first(),
transformation_class=TEST_TRANSFORMATION_CLASS,
arguments=TEST_TRANSFORMATION_ARGUMENT
)
def _request_document_properties_view(self):
return self.get(
viewname='documents:document_properties',