Configure settings for this test

Otherwise, environment variables can cause the `unfiltered` and `filtered` responses to match.
This breaks the assumption that the asserts are depending upon.
This commit is contained in:
tcely authored and GitHub committed 2025-02-01 00:31:47 -05:00
1 parent f9d838ca0d
commit 07a82e6df3
1 file changed
+2 -1
+2 -1
View File
@@ -12,7 +12,7 @@ from pathlib import Path
from urllib.parse import urlsplit
from xml.etree import ElementTree
from django.conf import settings
from django.test import TestCase, Client
from django.test import TestCase, Client, override_settings
from django.utils import timezone
from background_task.models import Task
from .models import Source, Media
@@ -1738,6 +1738,7 @@ class ResponseFilteringTestCase(TestCase):
metadata='{}'
)
@override_settings(SHRINK_OLD_MEDIA_METADATA=False, SHRINK_NEW_MEDIA_METADATA=False)
def test_metadata_20230629(self):
self.media.metadata = all_test_metadata['20230629']
self.media.save()