feat: ruff'ed
This commit is contained in:
@@ -9,14 +9,11 @@ class TestIndex(TestCase, CreateProductsMixin):
|
||||
self.product = self.create_product()
|
||||
|
||||
def test_index_view(self):
|
||||
response = self.client.get(reverse("web:index"))
|
||||
response = self.client.get(reverse('web:index'))
|
||||
assert response.status_code == 200
|
||||
|
||||
def test_product_detail_view(self):
|
||||
response = self.client.get(
|
||||
reverse(
|
||||
"web:product_detail",
|
||||
kwargs={"pk": self.product.pk, "slug": self.product.slug},
|
||||
)
|
||||
reverse('web:product_detail', kwargs={'pk': self.product.pk, 'slug': self.product.slug})
|
||||
)
|
||||
assert response.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user