summaryrefslogtreecommitdiff
path: root/repoze/bfg/testing.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-04-14 02:49:19 +0000
committerChris McDonough <chrism@agendaless.com>2010-04-14 02:49:19 +0000
commitff1213e8f2aed987108ba57aed517c033491b1aa (patch)
treef531544c3373ae7d5b51746987cb373326277a9c /repoze/bfg/testing.py
parent2b6bc8adfa294f7133680f64df411251afb67dfc (diff)
downloadpyramid-ff1213e8f2aed987108ba57aed517c033491b1aa.tar.gz
pyramid-ff1213e8f2aed987108ba57aed517c033491b1aa.tar.bz2
pyramid-ff1213e8f2aed987108ba57aed517c033491b1aa.zip
Add "exception views" work contributed primarily by Andrey Popp by merging the "phash" branch.
Diffstat (limited to 'repoze/bfg/testing.py')
-rw-r--r--repoze/bfg/testing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/repoze/bfg/testing.py b/repoze/bfg/testing.py
index 4e9abdae0..b68539f43 100644
--- a/repoze/bfg/testing.py
+++ b/repoze/bfg/testing.py
@@ -14,6 +14,7 @@ from repoze.bfg.interfaces import IRequest
from repoze.bfg.interfaces import IRoutesMapper
from repoze.bfg.interfaces import ISecuredView
from repoze.bfg.interfaces import IView
+from repoze.bfg.interfaces import IViewClassifier
from repoze.bfg.interfaces import IViewPermission
from repoze.bfg.configuration import Configurator
@@ -165,6 +166,7 @@ def registerView(name, result='', view=None, for_=(Interface, Interface),
:meth:`repoze.bfg.configuration.Configurator.add_view``
method in your unit and integration tests.
"""
+ for_ = (IViewClassifier, ) + for_
if view is None:
def view(context, request):
return Response(result)