Skip to content

Commit

Permalink
fix test_delete_order_anonimus_client
Browse files Browse the repository at this point in the history
  • Loading branch information
juliana-str committed Dec 29, 2023
1 parent f9fedce commit 7bc5f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/tests/api_tests/test_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7bc5f24

Please sign in to comment.