Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed May 30, 2017
1 parent 2cd24f3 commit 0ab2bdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cadasta/organization/tests/test_views_default_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,9 @@ def test_full_flow_valid_custom_types(self):

self.client.force_login(self.user)
csvfile = self.get_file(self.valid_csv_custom, 'rb')
file = SimpleUploadedFile('test_custom.csv', csvfile, 'text/csv')
file = SimpleUploadedFile('test_custom.csv', csvfile.read(),
'text/csv')
csvfile.close()
post_data = self.SELECT_FILE_POST_DATA.copy()
post_data['select_file-file'] = file
post_data['select_file-is_resource'] = True
Expand Down

0 comments on commit 0ab2bdd

Please sign in to comment.