Skip to content

Commit

Permalink
community:tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VIBR0X committed Dec 10, 2023
1 parent b3b219c commit 0d28668
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions community/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 0d28668

Please sign in to comment.