Skip to content

Commit

Permalink
fix: request.user was using incorrect value
Browse files Browse the repository at this point in the history
  • Loading branch information
tekanokhambane committed Apr 19, 2024
1 parent cfd4aa1 commit 2f65780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multitenancy/subscriptions/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_plan_detail_view(self):
name="enterprise",
)
self.request = self.factory.get(f"/billing/plans/{self.plan}/")
self.request.user = self.admin
self.request.user = self.user
view = PlanDetailView.as_view()
response = view(self.request, pk=self.plan.pk)
self.assertEqual(response.status_code, 200)
Expand Down

0 comments on commit 2f65780

Please sign in to comment.