diff options
author | Jonas Genannt <genannt@debian.org> | 2015-11-15 22:26:06 +0100 |
---|---|---|
committer | Jonas Genannt <genannt@debian.org> | 2015-11-15 22:26:06 +0100 |
commit | d65aa3c3c146b12548a54c894060bce9a8715ad2 (patch) | |
tree | 293607c424ec0b1d41e2aefaf26989a7adbd3e04 /tagging/tests/utils.py | |
parent | 29425a36c920e9b54e5860429ef3e3ce639fb155 (diff) | |
download | python-django-tagging-d65aa3c3c146b12548a54c894060bce9a8715ad2.tar python-django-tagging-d65aa3c3c146b12548a54c894060bce9a8715ad2.tar.gz |
Imported Upstream version 0.4upstream/0.4
Diffstat (limited to 'tagging/tests/utils.py')
-rw-r--r-- | tagging/tests/utils.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tagging/tests/utils.py b/tagging/tests/utils.py new file mode 100644 index 0000000..2f041d9 --- /dev/null +++ b/tagging/tests/utils.py @@ -0,0 +1,16 @@ +""" +Tests utils for tagging. +""" +from django.template.loader import BaseLoader + + +class VoidLoader(BaseLoader): + """ + Template loader which is always returning + an empty template. + """ + is_usable = True + _accepts_engine_in_init = True + + def load_template_source(self, template_name, template_dirs=None): + return ('', 'voidloader:%s' % template_name) |