Skip to content

Commit b8d98d0

Browse files
add django-cotton to autoconfigure test
1 parent 1aef46e commit b8d98d0

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

tests/test_conf.py

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,88 @@ def test_configured(self, configurator):
197197
],
198198
},
199199
),
200+
(
201+
{
202+
"builtins": [
203+
"django.template.defaulttags",
204+
"django_cotton.templatetags.cotton",
205+
],
206+
"loaders": [
207+
(
208+
"django.template.loaders.cached.Loader",
209+
[
210+
"django_cotton.cotton_loader.Loader",
211+
"django.template.loaders.filesystem.Loader",
212+
"django.template.loaders.app_directories.Loader",
213+
],
214+
),
215+
],
216+
},
217+
{
218+
"builtins": [
219+
"django.template.defaulttags",
220+
"django_cotton.templatetags.cotton",
221+
"django_bird.templatetags.django_bird",
222+
],
223+
"loaders": [
224+
(
225+
"django.template.loaders.cached.Loader",
226+
[
227+
"django_bird.loader.BirdLoader",
228+
"django_cotton.cotton_loader.Loader",
229+
"django.template.loaders.filesystem.Loader",
230+
"django.template.loaders.app_directories.Loader",
231+
],
232+
),
233+
],
234+
},
235+
),
236+
(
237+
{
238+
"builtins": [
239+
"django.template.defaulttags",
240+
"django_cotton.templatetags.cotton",
241+
],
242+
"loaders": [
243+
(
244+
"template_partials.loader.Loader",
245+
[
246+
(
247+
"django.template.loaders.cached.Loader",
248+
[
249+
"django_cotton.cotton_loader.Loader",
250+
"django.template.loaders.filesystem.Loader",
251+
"django.template.loaders.app_directories.Loader",
252+
],
253+
),
254+
],
255+
)
256+
],
257+
},
258+
{
259+
"builtins": [
260+
"django.template.defaulttags",
261+
"django_cotton.templatetags.cotton",
262+
"django_bird.templatetags.django_bird",
263+
],
264+
"loaders": [
265+
(
266+
"template_partials.loader.Loader",
267+
[
268+
(
269+
"django.template.loaders.cached.Loader",
270+
[
271+
"django_bird.loader.BirdLoader",
272+
"django_cotton.cotton_loader.Loader",
273+
"django.template.loaders.filesystem.Loader",
274+
"django.template.loaders.app_directories.Loader",
275+
],
276+
),
277+
],
278+
)
279+
],
280+
},
281+
),
200282
],
201283
)
202284
def test_template_settings(self, init_options, expected, configurator):

0 commit comments

Comments
 (0)