Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[HOT-FIX] correct tests;
  • Loading branch information
opalczynski committed Sep 27, 2016
commit d6253837e1202a7f48807f6391f6e7501eb15fbc
6 changes: 3 additions & 3 deletions tests/integration_test_data_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_manager_update(self):
test_field_a=update_string
)

data_object = Object.please.get(id=data_object.id)
data_object = Object.please.get(id=data_object.id, class_name=self.class_name)
self.assertEqual(data_object.test_field_a, update_string)
# shouldn't change;
self.assertEqual(data_object.test_field_file, file_url)
Expand All @@ -96,7 +96,7 @@ def test_manager_update(self):
test_field_file=new_file
)

data_object = Object.please.get(id=data_object.id)
data_object = Object.please.get(id=data_object.id, class_name=self.class_name)
self.assertEqual(data_object.test_field_a, new_update_string)
# should change;
self.assertNotEqual(data_object.test_field_file, file_url)
Expand All @@ -117,7 +117,7 @@ def test_manager_create(self):

@classmethod
def get_file_md5(cls, file_content):
return md5(file_content).hexdigest()
return md5(file_content.encode('utf-8')).hexdigest()

def assert_file_md5(self, data_object):
file_content = requests.get(data_object.test_field_file).text
Expand Down