aboutsummaryrefslogtreecommitdiffstats
path: root/tests/context_processors.py
diff options
context:
space:
mode:
authorJuan Catalano2014-04-15 14:33:38 +0000
committerJuan Catalano2014-04-15 11:34:20 -0400
commit15b1304e74c67d78f400cf63e9ffe06d3f4318dd (patch)
treee4b35af392b8b9e3d5dcb87b4dfa8e1a00eca684 /tests/context_processors.py
parentda95140ec391cd162dedb587bdff5d6e596c1015 (diff)
downloaddjango-debug-toolbar-15b1304e74c67d78f400cf63e9ffe06d3f4318dd.tar.bz2
Added unit test for broken context processors due to use of `render`
This adds the regression test for the case when a custom context processor breaks cause of the use of `render` in the redirects panel.
Diffstat (limited to 'tests/context_processors.py')
-rw-r--r--tests/context_processors.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/context_processors.py b/tests/context_processors.py
new file mode 100644
index 0000000..3514639
--- /dev/null
+++ b/tests/context_processors.py
@@ -0,0 +1,3 @@
+
+def custom(req):
+ msg = req.myattr