fix: extracted all web related stuff to a new app
This commit is contained in:
@@ -9,5 +9,5 @@ class TestWebComponents(TestCase, CreateProductsMixin):
|
||||
self.product = self.create_product()
|
||||
|
||||
def test_list_products_component(self):
|
||||
response = self.client.get(reverse("shop:list_products"))
|
||||
response = self.client.get(reverse("web:list_products"))
|
||||
assert response.status_code == 200
|
||||
|
||||
@@ -9,13 +9,13 @@ class TestIndex(TestCase, CreateProductsMixin):
|
||||
self.product = self.create_product()
|
||||
|
||||
def test_index_view(self):
|
||||
response = self.client.get(reverse("shop:index"))
|
||||
response = self.client.get(reverse("web:index"))
|
||||
assert response.status_code == 200
|
||||
|
||||
def test_product_detail_view(self):
|
||||
response = self.client.get(
|
||||
reverse(
|
||||
"shop:product_detail",
|
||||
"web:product_detail",
|
||||
kwargs={"pk": self.product.pk, "slug": self.product.slug},
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user