aboutsummaryrefslogtreecommitdiffstats
path: root/tests/middlewares.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/middlewares.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/middlewares.py')
-rw-r--r--tests/middlewares.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/middlewares.py b/tests/middlewares.py
new file mode 100644
index 0000000..44a3ef1
--- /dev/null
+++ b/tests/middlewares.py
@@ -0,0 +1,5 @@
+
+
+class CustomMiddleware(object):
+ def process_request(request):
+ request.myattr = 'test attribute'