Skip to content

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

Improve tests to work with new implementation of stocks

Mira Szewczyk3e2cf040b117
diff --git a/tests/test_core.py b/tests/test_core.py
index 28c84ad031..3abed80a34 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -130,7 +130,7 @@ def test_create_address(db):
assert Address.objects.all().count() == 1
-def test_create_fake_order(db, monkeypatch, image, media_root):
+def test_create_fake_order(db, monkeypatch, image, media_root, warehouse):
# Tests shouldn't depend on images present in placeholder folder
monkeypatch.setattr(
"saleor.core.utils.random_data.get_image", Mock(return_value=image)