14 lines
394 B
Python
14 lines
394 B
Python
from django.test import TestCase
|
|
from django.urls import reverse
|
|
|
|
from shop.tests.mixins import CreateProductsMixin
|
|
|
|
|
|
class TestWebComponents(TestCase, CreateProductsMixin):
|
|
def setUp(self):
|
|
self.product = self.create_product()
|
|
|
|
def test_list_products_component(self):
|
|
response = self.client.get(reverse("shop:list_products"))
|
|
assert response.status_code == 200
|