From 74673d92b1ffa656e2237762e5041848cf0d9916 Mon Sep 17 00:00:00 2001 From: zming <517046497@qq.com> Date: Thu, 7 Sep 2017 17:12:35 +0800 Subject: [PATCH] add unique reference and test --- tests/api/endpoints/admin/test_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/endpoints/admin/test_users.py b/tests/api/endpoints/admin/test_users.py index ad20615f7e..5d7d5dd162 100644 --- a/tests/api/endpoints/admin/test_users.py +++ b/tests/api/endpoints/admin/test_users.py @@ -97,6 +97,7 @@ class AdminUserTest(BaseTestCase): self.url = reverse('api-v2.1-admin-user', args=[self.tmp_email]) ccnet_api.add_emailuser(self.tmp_email, self.password, 0, 0) + self.clear_cache() def tearDown(self): self.remove_user(self.tmp_email) @@ -329,7 +330,6 @@ class AdminUserTest(BaseTestCase): resp = self.client.put(self.url, json.dumps(data), 'application/json') json_resp = json.loads(resp.content) - assert json_resp['reference_id'] == '' def test_put_same_reference_id(self): self.login_as(self.admin)