diff --git a/backend/tests/api_tests/test_order.py b/backend/tests/api_tests/test_order.py index 2ce27e1..583c26d 100644 --- a/backend/tests/api_tests/test_order.py +++ b/backend/tests/api_tests/test_order.py @@ -149,5 +149,5 @@ def test_delete_order_anonimus_client(self, client, products, delivery_points): response = client.post("/api/order/", order_data, format="json") assert response.status_code == status.HTTP_201_CREATED order = Order.objects.get() - response = client.delete(f"/api/order/{order.id}/", format="json") + response = client.delete(f"/api/order/{order.order_number}/", format="json") assert response.status_code == status.HTTP_403_FORBIDDEN