浏览代码

Fix reference to update_data

Jeremy Stretch 6 年之前
父节点
当前提交
09dc271eec
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      netbox/utilities/testing/api.py

+ 1 - 1
netbox/utilities/testing/api.py

@@ -266,7 +266,7 @@ class APIViewTestCases:
             response = self.client.patch(url, update_data, format='json', **self.header)
             self.assertHttpStatus(response, status.HTTP_200_OK)
             instance.refresh_from_db()
-            self.assertInstanceEqual(instance, self.update_data, api=True)
+            self.assertInstanceEqual(instance, update_data, api=True)
 
     class DeleteObjectViewTestCase(APITestCase):