Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Removed unused mock from tests
NyanKiyoshi714e83054040
diff --git a/tests/api/test_core_reordering.py b/tests/api/test_core_reordering.pyindex 775c8c01ed..c93484b352 100644--- a/tests/api/test_core_reordering.py+++ b/tests/api/test_core_reordering.py@@ -1,5 +1,3 @@-from unittest.mock import patch-import pytestfrom saleor.graphql.core.utils.reordering import perform_reordering@@ -213,8 +211,7 @@ def test_reordering_null_sort_orders(dummy_attribute):assert actual == expected-@patch("saleor.graphql.core.utils.reordering.warnings.warn")-def test_reordering_nothing(mocked_warn, sorted_entries_seq, django_assert_num_queries):+def test_reordering_nothing(sorted_entries_seq, django_assert_num_queries):"""Ensures giving operations that does nothing, are skipped. Thus only one query shouldhave been made: fetching the nodes.@@ -226,9 +223,6 @@ def test_reordering_nothing(mocked_warn, sorted_entries_seq, django_assert_num_qwith django_assert_num_queries(1) as ctx:perform_reordering(qs, operations)- mocked_warn.assert_called_with(- f"Ignored node's reordering, did not find: {pk} (from AttributeValue)"- )assert ctx[0]["sql"].startswith("SELECT "), "Should only have done a SELECT"