Skip to content

Commit

Permalink
fix: use correct reverse function and view
Browse files Browse the repository at this point in the history
  • Loading branch information
tekanokhambane committed Apr 20, 2024
1 parent f248901 commit 8d84602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multitenancy/subscriptions/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def test_plan_list_view_returns_plans_for_authenticated_admin(self):
self.client.force_login(self.user)

# Make a GET request to the PlanListView
response = self.client.get(reverse("plan-list"))
response = self.client.get(reverse("plan_list"))

# Assert that the response status code is 200 (OK)
self.assertEqual(response.status_code, 200)
Expand All @@ -152,7 +152,7 @@ def test_filter_plans_by_id(self):
request = self.client.get("/plans/", {"id": plan2.id})

# Instantiate the PlanListView and get the context data
view = PlanListView()
view = PlanListView().as_view()
view.request = request
context = view.get_context_data()

Expand Down

0 comments on commit 8d84602

Please sign in to comment.