diff --git a/compressor/test_settings.py b/compressor/test_settings.py index d10e02d..abda256 100644 --- a/compressor/test_settings.py +++ b/compressor/test_settings.py @@ -23,6 +23,7 @@ INSTALLED_APPS = [ 'compressor', 'coffin', 'sekizai', + 'overextends', ] if django.VERSION < (1, 8): INSTALLED_APPS.append('jingo') diff --git a/compressor/tests/test_offline.py b/compressor/tests/test_offline.py index 71f91c0..4549707 100644 --- a/compressor/tests/test_offline.py +++ b/compressor/tests/test_offline.py @@ -517,3 +517,10 @@ class OfflineGenerationJingoTestCase(OfflineTestCaseMixin, TestCase): env.globals['url_for'] = url_for return env + + +class OfflineGenerationOverextendsTestCase(OfflineTestCaseMixin, TestCase): + templates_dir = "test_overextends" + expected_hash = "e993b2a53994" + # overextends not supported for Jinja2 yet. + engines = ("django",) diff --git a/compressor/tests/test_templates/test_overextends/base.html b/compressor/tests/test_templates/test_overextends/base.html new file mode 100644 index 0000000..1406ac4 --- /dev/null +++ b/compressor/tests/test_templates/test_overextends/base.html @@ -0,0 +1,7 @@ +{% load compress %}{% spaceless %} +{% compress js %} + +{% endcompress %} +{% endspaceless %} diff --git a/compressor/tests/test_templates/test_overextends/test_compressor_offline.html b/compressor/tests/test_templates/test_overextends/test_compressor_offline.html new file mode 100644 index 0000000..c731be0 --- /dev/null +++ b/compressor/tests/test_templates/test_overextends/test_compressor_offline.html @@ -0,0 +1 @@ +{% overextends "base.html" %} diff --git a/requirements/tests.txt b/requirements/tests.txt index 3985c54..b3d1525 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -9,3 +9,4 @@ unittest2==1.0.0 coffin==0.4.0 jingo==0.7 django-sekizai==0.8.2 +django-overextends==0.4.0