feat: added test for list wishlisted products

This commit is contained in:
2025-01-02 12:24:17 +01:00
parent 63f01db7ba
commit 5bc45eae0a
+11
View File
@@ -79,3 +79,14 @@ class TestWishlist(TestCase, CreateProductsMixin):
reverse("web:wishlist") reverse("web:wishlist")
) )
assert response.status_code == 302 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