Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix test

dominik-zeglen88c116a84293
diff --git a/tests/dashboard/test_order.py b/tests/dashboard/test_order.py
index 4f2e1abc02..008f9b96a3 100644
--- a/tests/dashboard/test_order.py
+++ b/tests/dashboard/test_order.py
@@ -292,13 +292,12 @@ def test_view_order_invoice(
order_with_items_and_stock.save()
url = reverse(
'dashboard:order-invoice', kwargs={
- 'group_pk': order_with_items_and_stock.groups.all()[0].pk
+ 'order_pk': order_with_items_and_stock.id
})
response = admin_client.get(url)
assert response.status_code == 200
assert response['content-type'] == 'application/pdf'
- name = "invoice-%s-%s" % (order_with_items_and_stock.id,
- order_with_items_and_stock.groups.all()[0].pk)
+ name = "invoice-%s" % order_with_items_and_stock.id
assert response['Content-Disposition'] == 'filename=%s' % name