Remove celery code execute from model. Allow for default at the model level.
This commit is contained in:
@@ -35,7 +35,7 @@ class DocumentsViewsFunctionalTestCase(TestCase):
|
||||
self.assertTrue(self.admin_user.is_authenticated())
|
||||
|
||||
with open(TEST_SMALL_DOCUMENT_PATH) as file_object:
|
||||
self.document = self.document_type.new_document(file_object=File(file_object), label='mayan_11_1.pdf')
|
||||
self.document = self.document_type.new_document(file_object=File(file_object), label='mayan_11_1.pdf').document
|
||||
|
||||
def tearDown(self):
|
||||
self.document_type.delete()
|
||||
|
||||
Reference in New Issue
Block a user