Fixed tests
ci/woodpecker/push/build Pipeline was successful Szczegóły
ci/woodpecker/pr/build Pipeline was successful Szczegóły

feature/translations
mtyton 2023-10-04 21:49:01 +02:00
rodzic 0b99786301
commit 45a9918bda
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -115,7 +115,7 @@ class SessionCartTestCase(BaseComfyTestCaseMixin, APITestCase):
def test_update_item_quantity_invalid_product_id(self):
response = self.client.put(
reverse("cart-action-update-product", kwargs={"pk": 2137}),
{"quantity": 5},
f'en/{reverse("cart-action-update-product", kwargs={"pk": 2137})}',
{"quantity": 5}
)
self.assertEqual(response.status_code, 404)

Wyświetl plik

@ -56,7 +56,7 @@ class ConfigureProductViewTestCase(BaseComfyTestCaseMixin, TestCase):
def test_get_failure_wrong_pk(self):
response = self.client.get(
reverse("product-configure", args=[12312]),
f'en/{reverse("product-configure", args=[12312])}',
)
self.assertEqual(response.status_code, 404)
@ -78,7 +78,7 @@ class ConfigureProductViewTestCase(BaseComfyTestCaseMixin, TestCase):
self.param2.key: [str(self.param2_value1.pk)]
}
response = self.client.post(
reverse("product-configure", args=[2137]),
f"en/{reverse('product-configure', args=[123123])}",
data=data
)
self.assertEqual(response.status_code, 404)