Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix a settings thread race between tests
Maciej Korycinski4f54876016a6
diff --git a/tests/test_core.py b/tests/test_core.pyindex bfdbba59ff..63e23235b5 100644--- a/tests/test_core.py+++ b/tests/test_core.py@@ -6,6 +6,7 @@ from urllib.parse import urljoinimport pytestfrom django.shortcuts import reversefrom django.templatetags.static import static+from django.test import override_settingsfrom django.urls import translate_urlfrom measurement.measures import Weightfrom prices import Money@@ -163,8 +164,9 @@ def test_utils_strip_html():assert text == 'Hello World'+@override_settings(+ VERSATILEIMAGEFIELD_SETTINGS={'create_images_on_demand': False})def test_create_thumbnails(product_with_image, settings):- settings.VERSATILEIMAGEFIELD_SETTINGS['create_images_on_demand'] = Falsesizeset = settings.VERSATILEIMAGEFIELD_RENDITION_KEY_SETS['products']product_image = product_with_image.images.first()