Remove NewDocumentVersionBlockViewTestCase, it belongs in the sources app only.

This commit is contained in:
Roberto Rosario
2015-10-25 01:53:32 -04:00
parent b0f5e8741b
commit 9bbd148497

View File

@@ -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
)