From 0d28668b4d28d0682138828b4b190279152b545b Mon Sep 17 00:00:00 2001 From: VIBR0X <44766005+vedant-github@users.noreply.github.com> Date: Sun, 10 Dec 2023 09:56:27 +0530 Subject: [PATCH] community:tests --- community/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/community/tests.py b/community/tests.py index 95ac8842..205e98da 100644 --- a/community/tests.py +++ b/community/tests.py @@ -71,7 +71,7 @@ def test_community_get(self): def test_communitypost_alllist(self): """Test if communityposts can be listed.""" - url = "/api/communityposts?status=1&comm_id=" + str(self.test_community_1.id) + url = "/api/communityposts?status=1&community=" + str(self.test_community_1.id) response = self.client1.get(url, format="json") data = response.data["data"] self.assertEqual(response.status_code, 200) @@ -82,7 +82,7 @@ def test_communitypost_alllist(self): ) def test_communitypost_yourlist(self): - url = "/api/communityposts?comm_id=" + str(self.test_community_1.id) + url = "/api/communityposts?community=" + str(self.test_community_1.id) response = self.client1.get(url, format="json") data = response.data["data"] self.assertEqual(response.status_code, 200) @@ -98,7 +98,7 @@ def test_communitypost_yourlist(self): ) def test_communitypost_pendinglist(self): - url = "/api/communityposts?status=0&comm_id=" + str(self.test_community_1.id) + url = "/api/communityposts?status=0&community=" + str(self.test_community_1.id) response = self.client1.get(url, format="json") data = response.data["data"] self.assertEqual(response.status_code, 200)