Some docs for the TestingMiddleware

To make the TestingMiddleware actually more useful in the
future, start to document it.
This commit is contained in:
Elrond
2011-10-30 20:51:55 +01:00
parent 91b89bde47
commit 34b0874d9a
2 changed files with 27 additions and 0 deletions

View File

@@ -107,6 +107,8 @@ def get_test_app(dump_old_app=True):
# Insert the TestingMiddleware, which can do some
# sanity checks on every request/response.
# Doing it this way is probably not the cleanest way.
# We'll fix it, when we have plugins!
mg_globals.app.middleware.insert(0, TestingMiddleware(mg_globals.app))
app = TestApp(test_app)