From 63cf85b64d3cb84e151f1994a6116c17deaefb33 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 9 Dec 2005 04:29:20 +0000 Subject: Moved custom unit-test templatetag library into the unit test module itself, to fix errors when running the test module directly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1586 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/testapp/templatetags/__init__.py | 0 tests/testapp/templatetags/testtags.py | 17 ----------------- 2 files changed, 17 deletions(-) delete mode 100644 tests/testapp/templatetags/__init__.py delete mode 100644 tests/testapp/templatetags/testtags.py (limited to 'tests/testapp') diff --git a/tests/testapp/templatetags/__init__.py b/tests/testapp/templatetags/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/testapp/templatetags/testtags.py b/tests/testapp/templatetags/testtags.py deleted file mode 100644 index e9177d8c24..0000000000 --- a/tests/testapp/templatetags/testtags.py +++ /dev/null @@ -1,17 +0,0 @@ -# Custom tag library used in conjunction with template tests - -from django.core import template - -register = template.Library() - -class EchoNode(template.Node): - def __init__(self, contents): - self.contents = contents - - def render(self, context): - return " ".join(self.contents) - -def do_echo(parser, token): - return EchoNode(token.contents.split()[1:]) - -register.tag("echo", do_echo) \ No newline at end of file -- cgit v1.3