fix bugs due to problem id

This commit is contained in:
zema1
2017-09-29 21:58:20 +08:00
parent 51c229a2c5
commit 2a91fd5e9f
8 changed files with 54 additions and 25 deletions

View File

@@ -226,7 +226,7 @@ class UserProfileAPITest(APITestCase):
def test_get_profile_without_login(self):
resp = self.client.get(self.url)
self.assertDictEqual(resp.data, {"error": None, "data": 0})
self.assertDictEqual(resp.data, {"error": None, "data": {}})
def test_get_profile(self):
self.create_user("test", "test123")