Failing test for #640
This commit is contained in:
@@ -23,6 +23,7 @@ INSTALLED_APPS = [
|
||||
'compressor',
|
||||
'coffin',
|
||||
'sekizai',
|
||||
'overextends',
|
||||
]
|
||||
if django.VERSION < (1, 8):
|
||||
INSTALLED_APPS.append('jingo')
|
||||
|
||||
@@ -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",)
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{% load compress %}{% spaceless %}
|
||||
{% compress js %}
|
||||
<script type="text/javascript">
|
||||
alert("test overextends");
|
||||
</script>
|
||||
{% endcompress %}
|
||||
{% endspaceless %}
|
||||
@@ -0,0 +1 @@
|
||||
{% overextends "base.html" %}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user