feat: added test for list wishlisted products
This commit is contained in:
@@ -79,3 +79,14 @@ class TestWishlist(TestCase, CreateProductsMixin):
|
||||
reverse("web:wishlist")
|
||||
)
|
||||
assert response.status_code == 302
|
||||
|
||||
def test_list_wishlisted_products(self):
|
||||
WishlistedProduct.objects.create(
|
||||
user=self.user,
|
||||
product=self.product,
|
||||
)
|
||||
self.client.force_login(self.user)
|
||||
response = self.client.get(
|
||||
reverse("web:list_wishlisted_products")
|
||||
)
|
||||
assert response.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user