Remove typecasting of file objects into Django's File class, not needed in Django >1.8.x.

This commit is contained in:
Roberto Rosario
2016-03-14 20:20:54 -04:00
parent f5d2ea7d9e
commit 9823202405
14 changed files with 36 additions and 50 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ from __future__ import unicode_literals
import json
from django.contrib.auth import get_user_model
from django.core.files import File
from django.core.urlresolvers import reverse
from rest_framework import status
@@ -37,7 +36,7 @@ class OCRAPITestCase(APITestCase):
with open(TEST_SMALL_DOCUMENT_PATH) as file_object:
self.document = self.document_type.new_document(
file_object=File(file_object),
file_object=file_object,
)
def tearDown(self):