Skip to content

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

Add tests for query order by not-charged payment status

Unknowne618cad3171f
diff --git a/tests/dashboard/test_order.py b/tests/dashboard/test_order.py
index b31df9d0a1..9175085a4c 100644
--- a/tests/dashboard/test_order.py
+++ b/tests/dashboard/test_order.py
@@ -1079,6 +1079,13 @@ def test_order_event_display(admin_user, type, order):
def test_filter_order_by_status(admin_client):
url = reverse('dashboard:orders',)
- data = {'status': 'unfulfilled', 'payment_status': 'charged'}
+ data = {
+ 'status': 'unfulfilled', 'payment_status': ChargeStatus.NOT_CHARGED}
+ response = admin_client.get(url, data)
+ assert response.status_code == 200
+
+ data = {
+ 'status': 'unfulfilled',
+ 'payment_status': ChargeStatus.FULLY_REFUNDED}
response = admin_client.get(url, data)
assert response.status_code == 200