Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Stop using transactional db
Patryk Zawadzki94bdd73fe692
diff --git a/tests/dashboard/test_order.py b/tests/dashboard/test_order.pyindex 7e85b918f6..e7417b58ca 100644--- a/tests/dashboard/test_order.py+++ b/tests/dashboard/test_order.py@@ -259,7 +259,7 @@ def test_view_split_order_line_with_invalid_data(assert DeliveryGroup.objects.count() == 1-def test_ordered_item_change_quantity(transactional_db, order_with_lines):+def test_ordered_item_change_quantity(db, order_with_lines):assert list(order_with_lines.history.all()) == []lines = order_with_lines.groups.all()[0].lines.all()change_order_line_quantity(lines[0], 0)@@ -270,8 +270,7 @@ def test_ordered_item_change_quantity(transactional_db, order_with_lines):assert history[0].content == 'Order cancelled. No items in order'-def test_ordered_item_remove_empty_group_with_force(- transactional_db, order_with_lines):+def test_ordered_item_remove_empty_group_with_force(db, order_with_lines):group = order_with_lines.groups.all()[0]lines = group.lines.all()remove_empty_groups(lines[0], force=True)diff --git a/tests/test_asynchronous_tasks.py b/tests/test_asynchronous_tasks.pyindex 47a943fcfc..f0e5f2eae3 100644--- a/tests/test_asynchronous_tasks.py+++ b/tests/test_asynchronous_tasks.py@@ -7,7 +7,7 @@ from saleor.order.emails import (@pytest.mark.django_db@pytest.mark.integrationdef test_email_sending_asynchronously(- transactional_db, celery_app, celery_worker, order_with_lines):+ db, celery_app, celery_worker, order_with_lines):order = send_order_confirmation.delay('[email protected]', '/nowhere/to/go', order_with_lines.pk)payment = send_payment_confirmation.delay('[email protected]', '/nowhere/')