summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2013-04-23 10:18:11 -0700
committerTres Seaver <tseaver@palladion.com>2013-04-23 10:18:11 -0700
commit84388ec18225330e351b55b5957ab2d4c7ae932e (patch)
treebe2cec3bcba35bba2ed3362c87c3162dbfc8dc09 /docs
parentdcaabcb87ca584c289efe70a604db0502838df3d (diff)
parent613a7e5972ac15c0c296307de47944bfb07969c0 (diff)
downloadpyramid-84388ec18225330e351b55b5957ab2d4c7ae932e.tar.gz
pyramid-84388ec18225330e351b55b5957ab2d4c7ae932e.tar.bz2
pyramid-84388ec18225330e351b55b5957ab2d4c7ae932e.zip
Merge pull request #1002 from tshepang/patch-2
add a note about missing code
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,