瀏覽代碼

Fix: Use rsponse.json() to fix test-failure on json-3.5

pull/139/head
winkidney 5 年之前
父節點
當前提交
814782f5ef
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      core/tests/views.py

+ 2
- 2
core/tests/views.py 查看文件

@@ -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. '


Loading…
取消
儲存