Skip to content

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

Merge branch 'invoice-delete-mutation' of github.com:mirumee/saleor into invoice-update-mutation

Tomasz Szymanski35194f2ded84
diff --cc tests/api/test_order.py
index 5e566d8b10,ea0ed5180f..5aa669d8c9
--- a/tests/api/test_order.py
+++ b/tests/api/test_order.py
@@@ -2842,27 -2843,10 +2843,30 @@@ DELETE_INVOICE_MUTATION = ""
"""
+UPDATE_INVOICE_MUTATION = """
+ mutation UpdateInvoice($id: ID!, $number: String, $url: String) {
+ updateInvoice(
+ id: $id,
+ number: $number,
+ url: $url
+ ) {
+ invoice {
+ number
+ url
+ }
+ errors {
+ field
+ message
+ }
+ }
+ }
+"""
+
+
- def test_request_invoice(user_api_client, permission_manage_orders, orders):
+ @mock.patch("saleor.extensions.base_plugin.BasePlugin.invoice_request")
+ def test_request_invoice(
+ plugin_mock, user_api_client, permission_manage_orders, orders
+ ):
number = "01/12/2020/TEST"
variables = {
"orderId": graphene.Node.to_global_id("Order", orders[0].pk),