Update tests

This commit is contained in:
Roberto Rosario
2014-12-09 03:18:16 -04:00
parent af51acebf5
commit 9b83c3bd3e
3 changed files with 23 additions and 108 deletions

View File

@@ -6,7 +6,6 @@ from django.conf import settings
from django.core.files.base import File
from django.test import TestCase
from documents.literals import VERSION_UPDATE_MAJOR
from documents.models import Document, DocumentType
from django_gpg.literals import SIGNATURE_STATE_VALID
from django_gpg.runtime import gpg
@@ -43,7 +42,6 @@ class DocumentTestCase(TestCase):
with open(TEST_SIGNED_DOCUMENT_PATH) as file_object:
new_version_data = {
'comment': 'test comment 1',
'version_update': VERSION_UPDATE_MAJOR,
}
self.document.new_version(file=File(file_object, name='mayan_11_1.pdf.gpg'), **new_version_data)
@@ -54,7 +52,6 @@ class DocumentTestCase(TestCase):
def test_detached_signatures(self):
new_version_data = {
'comment': 'test comment 2',
'version_update': VERSION_UPDATE_MAJOR,
}
with open(TEST_DOCUMENT_PATH) as file_object:
self.document.new_version(file=File(file_object), **new_version_data)