From 15b1304e74c67d78f400cf63e9ffe06d3f4318dd Mon Sep 17 00:00:00 2001 From: Juan Catalano Date: Tue, 15 Apr 2014 14:33:38 +0000 Subject: 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. --- tests/middlewares.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/middlewares.py (limited to 'tests/middlewares.py') 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' -- cgit v1.2.3