1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Description: tests: write to temp directory
The test suite will write to the source directory, which either forces us to
clean it up before installing into the binary package. This change makes it
write to a temporary directory passed in as an environment variable
TMP_TEST_DIR, which is assumed to be initialized with a copy of
compressor/tests/static.
Author: Antonio Terceiro <terceiro@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2024-08-22
--- python-django-compressor-4.5.1.orig/compressor/test_settings.py
+++ python-django-compressor-4.5.1/compressor/test_settings.py
@@ -31,8 +31,9 @@ STATICFILES_FINDERS = [
STATIC_URL = "/static/"
+TMP_TEST_DIR = os.getenv("TMP_TEST_DIR")
-STATIC_ROOT = os.path.join(TEST_DIR, "static")
+STATIC_ROOT = os.path.join(TMP_TEST_DIR or TEST_DIR, "static")
TEMPLATES = [
{
|