diff options
| author | Chris McDonough <chrism@plope.com> | 2013-04-23 13:41:07 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-04-23 13:41:07 -0400 |
| commit | 100024533b6bf297228ffccf7230fcaad136edb9 (patch) | |
| tree | be2cec3bcba35bba2ed3362c87c3162dbfc8dc09 /docs | |
| parent | 47b8cf7e9b578464b533383083f7135271db0f9e (diff) | |
| parent | 84388ec18225330e351b55b5957ab2d4c7ae932e (diff) | |
| download | pyramid-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.rst | 6 |
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, |
