Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use contrib.staticfiles and fix leading slash in path
Marcin Gębala0bdb318ce5b5
diff --git a/tests/test_product_tags.py b/tests/test_product_tags.pyindex bbb84e4d25..63316ad04b 100644--- a/tests/test_product_tags.py+++ b/tests/test_product_tags.py@@ -1,5 +1,5 @@from mock import Mock-from django.templatetags.static import static+from django.contrib.staticfiles.templatetags.staticfiles import staticfrom saleor.product.templatetags.product_images import (get_thumbnail, product_first_image)@@ -18,7 +18,7 @@ def test_get_thumbnail():def test_get_thumbnail_no_instance():output = get_thumbnail(instance=None, size='10x10', method='crop')- assert output == static('/images/product-image-placeholder.png')+ assert output == static('images/product-image-placeholder.png')def test_product_first_image():