mirror of
https://github.com/pinry/pinry.git
synced 2026-05-07 05:07:28 +02:00
Fix: Use rsponse.json() to fix test-failure on json-3.5
This commit is contained in:
@@ -28,8 +28,8 @@ class CreateImageTest(TestCase):
|
||||
|
||||
def test_post_error(self):
|
||||
response = self.client.post(reverse('image-list'), {'image': None})
|
||||
self.assertJSONEqual(
|
||||
response.content,
|
||||
self.assertEqual(
|
||||
response.json(),
|
||||
{
|
||||
'image': [
|
||||
'The submitted data was not a file. '
|
||||
|
||||
Reference in New Issue
Block a user