Add explicit argument name of 'mode' to the open statement.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-10-31 16:53:48 -04:00
parent 5a8455bfc2
commit 9fc7c4fc09
11 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ class DocumentUploadIssueTestCase(GenericViewTestCase):
self.assertEqual(WebFormSource.objects.count(), 1)
# Upload the test document
with open(TEST_SMALL_DOCUMENT_PATH, 'rb') as file_descriptor:
with open(TEST_SMALL_DOCUMENT_PATH, mode='rb') as file_descriptor:
self.post(
viewname='sources:upload_interactive', data={
'document-language': 'eng',