summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorTshepang Lekhonkhobe <tshepang@gmail.com>2013-04-23 09:35:48 +0300
committerTshepang Lekhonkhobe <tshepang@gmail.com>2013-04-23 09:35:48 +0300
commit613a7e5972ac15c0c296307de47944bfb07969c0 (patch)
treebe2cec3bcba35bba2ed3362c87c3162dbfc8dc09 /docs/narr
parentdcaabcb87ca584c289efe70a604db0502838df3d (diff)
downloadpyramid-613a7e5972ac15c0c296307de47944bfb07969c0.tar.gz
pyramid-613a7e5972ac15c0c296307de47944bfb07969c0.tar.bz2
pyramid-613a7e5972ac15c0c296307de47944bfb07969c0.zip
add a note about missing code
Diffstat (limited to 'docs/narr')
-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,