From 9e2ef57e006ecae0ae9e7648560832a07a57c133 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 13 Oct 2019 16:09:54 -0400 Subject: [PATCH] Fix document view test mixin Signed-off-by: Roberto Rosario --- mayan/apps/documents/tests/mixins.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mayan/apps/documents/tests/mixins.py b/mayan/apps/documents/tests/mixins.py index 6e772618a1..8387431015 100644 --- a/mayan/apps/documents/tests/mixins.py +++ b/mayan/apps/documents/tests/mixins.py @@ -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',