|
3 | 3 |
|
4 | 4 | """Tests of template inheritance for django_coverage_plugin.""" |
5 | 5 |
|
6 | | -from .plugin_test import DjangoPluginTestCase, django_stop_before |
| 6 | +from .plugin_test import DjangoPluginTestCase |
7 | 7 |
|
8 | 8 |
|
9 | 9 | class BlockTest(DjangoPluginTestCase): |
@@ -146,43 +146,3 @@ def test_include(self): |
146 | 146 | self.assertEqual(text, "First\nInside\nJob\n\nLast\n") |
147 | 147 | self.assert_analysis([1, 2, 3], name="outer.html") |
148 | 148 | self.assert_analysis([1, 2], name="nested.html") |
149 | | - |
150 | | - |
151 | | -# {% ssi %} is in earlier Djangos than 1.9, but doesn't trace properly. |
152 | | -@django_stop_before(1, 10) |
153 | | -class SsiTest(DjangoPluginTestCase): |
154 | | - """Test {% ssi %}, which does not trace the included file.""" |
155 | | - |
156 | | - def test_ssi_unparsed(self): |
157 | | - nested = self.make_template(name="nested.html", text="""\ |
158 | | - Inside {{ a }} |
159 | | - Job |
160 | | - """) |
161 | | - |
162 | | - self.make_template(name="outer.html", text="""\ |
163 | | - First |
164 | | - {% ssi "NESTED" %} |
165 | | - Last |
166 | | - """.replace("NESTED", nested)) |
167 | | - |
168 | | - text = self.run_django_coverage(name="outer.html", context={'a': 17}) |
169 | | - self.assertEqual(text, "First\nInside {{ a }}\nJob\n\nLast\n") |
170 | | - self.assert_analysis([1, 2, 3], name="outer.html") |
171 | | - self.assert_measured_files("outer.html", "nested.html") |
172 | | - |
173 | | - def test_ssi_parsed(self): |
174 | | - nested = self.make_template(name="nested.html", text="""\ |
175 | | - Inside {{ a }} |
176 | | - Job |
177 | | - """) |
178 | | - |
179 | | - self.make_template(name="outer.html", text="""\ |
180 | | - First |
181 | | - {% ssi "NESTED" parsed %} |
182 | | - Last |
183 | | - """.replace("NESTED", nested)) |
184 | | - |
185 | | - text = self.run_django_coverage(name="outer.html", context={'a': 17}) |
186 | | - self.assertEqual(text, "First\nInside 17\nJob\n\nLast\n") |
187 | | - self.assert_analysis([1, 2, 3], name="outer.html") |
188 | | - self.assert_measured_files("outer.html", "nested.html") |
0 commit comments