Failing test for #640

This commit is contained in:
Matt Westcott
2015-09-27 16:04:42 +01:00
parent e6ade966d5
commit 5654b0506d
5 changed files with 17 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ INSTALLED_APPS = [
'compressor',
'coffin',
'sekizai',
'overextends',
]
if django.VERSION < (1, 8):
INSTALLED_APPS.append('jingo')

View File

@@ -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",)

View File

@@ -0,0 +1,7 @@
{% load compress %}{% spaceless %}
{% compress js %}
<script type="text/javascript">
alert("test overextends");
</script>
{% endcompress %}
{% endspaceless %}

View File

@@ -0,0 +1 @@
{% overextends "base.html" %}

View File

@@ -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