Skip to content

Commit

Permalink
Change all requests test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabeweng committed Jan 17, 2025
1 parent d8a7c78 commit 24b81d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/tests/clubs/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3186,14 +3186,14 @@ def test_ownership_requests_destroy(self):
0,
)

def test_ownership_requests_list_all_requests(self):
def test_ownership_requests_list_all(self):
"""
Test the ownership requests list all requests feature
"""

self.client.login(username=self.user5.username, password="test")
resp = self.client.get(
reverse("club-ownership-requests-all-requests", args=("anystring",))
reverse("club-ownership-requests-all", args=("anystring",))
)
self.assertEqual(resp.status_code, 200, resp.content)
self.assertEqual(len(resp.json()), 0, resp.content)
Expand Down Expand Up @@ -3227,7 +3227,7 @@ def test_ownership_requests_list_all_requests(self):

self.client.login(username=self.user5.username, password="test")
resp = self.client.get(
reverse("club-ownership-requests-all-requests", args=("anystring",))
reverse("club-ownership-requests-all", args=("anystring",))
)
self.assertEqual(resp.status_code, 200, resp.content)
self.assertEqual(len(resp.json()), 3, resp.content)
Expand Down

0 comments on commit 24b81d6

Please sign in to comment.