Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix tests
Marcin Gębalab18f33ed8cf5
diff --git a/tests/dashboard/test_product.py b/tests/dashboard/test_product.pyindex a526326951..e70e248dfe 100644--- a/tests/dashboard/test_product.py+++ b/tests/dashboard/test_product.py@@ -152,7 +152,7 @@ def test_view_product_toggle_publish(db, admin_client, product_in_stock):response = admin_client.post(url)assert response.status_code == 200data = {'success': True, 'is_published': False}- assert json.loads(response.content) == data+ assert json.loads(response.content.decode('utf8')) == dataadmin_client.post(url)product.refresh_from_db()assert product.is_published