From 9bbd148497f9ae6ab31f9671c663f27683e566ff Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 25 Oct 2015 01:53:32 -0400 Subject: [PATCH] Remove NewDocumentVersionBlockViewTestCase, it belongs in the sources app only. --- mayan/apps/documents/tests/test_views.py | 29 ------------------------ 1 file changed, 29 deletions(-) diff --git a/mayan/apps/documents/tests/test_views.py b/mayan/apps/documents/tests/test_views.py index 7a54ced465..c43a87cfaf 100644 --- a/mayan/apps/documents/tests/test_views.py +++ b/mayan/apps/documents/tests/test_views.py @@ -577,32 +577,3 @@ class DocumentTypeViewsTestCase(GenericDocumentViewTestCase): DocumentType.objects.get(pk=self.document_type.pk).label, TEST_DOCUMENT_TYPE_EDITED_LABEL ) - - -class NewDocumentVersionBlockViewTestCase(GenericDocumentViewTestCase): - def test_document_new_version_after_checkout(self): - """ - Gitlab issue #231 - User shown option to upload new version of a document even though it - is blocked by checkout - v2.0.0b2 - - Expected results: - - Link to upload version view should not resolve - - Upload version view should reject request - """ - - self.login( - username=TEST_ADMIN_USERNAME, password=TEST_ADMIN_PASSWORD - ) - - NewVersionBlock.objects.block(self.document) - - response = self.post( - 'sources:upload_version', args=(self.document.pk,), - follow=True - ) - - self.assertContains( - response, text='blocked from uploading', - status_code=200 - )