Improve metadata app tests pass rate for Python 3.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-09-06 16:55:48 -04:00
parent d3af59ec06
commit e41f2f73e7
5 changed files with 14 additions and 31 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ class DocumentMetadataAPITestCase(BaseAPITestCase):
metadata_type=self.metadata_type, required=False
)
with open(TEST_SMALL_DOCUMENT_PATH) as file_object:
with open(TEST_SMALL_DOCUMENT_PATH, 'rb') as file_object:
self.document = self.document_type.new_document(
file_object=file_object,
)