From 27401b35f9311861bd1fab89389f931539e2bb39 Mon Sep 17 00:00:00 2001 From: Sylvain Boissel Date: Tue, 5 Nov 2024 15:21:43 +0100 Subject: [PATCH] update test --- content_manager/tests/test_blocks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content_manager/tests/test_blocks.py b/content_manager/tests/test_blocks.py index f318b8d9..97df742f 100644 --- a/content_manager/tests/test_blocks.py +++ b/content_manager/tests/test_blocks.py @@ -1,4 +1,5 @@ from django.contrib.auth.models import User +from django.test import override_settings from wagtail.models import Page from wagtail.rich_text import RichText from wagtail.test.utils import WagtailPageTestCase @@ -322,7 +323,8 @@ def test_tile_with_image_has_div(self): self.assertContains(response, "fr-tile__header") - def test_tile_manages_svg_image(self): + @override_settings(SF_SCHEME_DEPENDENT_SVGS=True) + def test_tile_manages_svg_image_if_setting_allows(self): image_file = "static/artwork/technical-error.svg" image = import_image(image_file, "Sample image")