summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-04-23 13:41:07 -0400
committerChris McDonough <chrism@plope.com>2013-04-23 13:41:07 -0400
commit100024533b6bf297228ffccf7230fcaad136edb9 (patch)
treebe2cec3bcba35bba2ed3362c87c3162dbfc8dc09 /docs
parent47b8cf7e9b578464b533383083f7135271db0f9e (diff)
parent84388ec18225330e351b55b5957ab2d4c7ae932e (diff)
downloadpyramid-100024533b6bf297228ffccf7230fcaad136edb9.tar.gz
pyramid-100024533b6bf297228ffccf7230fcaad136edb9.tar.bz2
pyramid-100024533b6bf297228ffccf7230fcaad136edb9.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/testing.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/narr/testing.rst b/docs/narr/testing.rst
index ec5952a7c..88d6904c7 100644
--- a/docs/narr/testing.rst
+++ b/docs/narr/testing.rst
@@ -222,6 +222,12 @@ function.
raise HTTPForbidden
return {'greeting':'hello'}
+.. note::
+
+ This code implies that you have defined a renderer imperatively in a
+ relevant :class:`pyramid.config.Configurator` instance,
+ otherwise it would fail when run normally.
+
Without doing anything special during a unit test, the call to
:func:`~pyramid.security.has_permission` in this view function will always
return a ``True`` value. When a :app:`Pyramid` application starts normally,