From edae00c7aa6d405bdabb25ddb326c843bf84e4cd Mon Sep 17 00:00:00 2001
From: Chris van Run
Date: Fri, 20 Dec 2024 16:46:46 +0100
Subject: [PATCH] Fix youtube tag subsitution test
---
.../core_tests/test_tag_substitutions.py | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/app/tests/core_tests/test_tag_substitutions.py b/app/tests/core_tests/test_tag_substitutions.py
index 9d76d73287..3ae6208ee9 100644
--- a/app/tests/core_tests/test_tag_substitutions.py
+++ b/app/tests/core_tests/test_tag_substitutions.py
@@ -1,3 +1,5 @@
+import textwrap
+
import pytest
from django.utils.safestring import SafeString, mark_safe
@@ -131,16 +133,13 @@ def test_no_change_with_no_tag_or_arg_match(content):
assert s == content
-EXPECTED_YOUTUBE_EMBED = """
-
-
-
"""
+EXPECTED_YOUTUBE_EMBED = textwrap.dedent(
+ """\
+
+
+
+ """
+)
@pytest.mark.parametrize(