diff options
Diffstat (limited to 'pyramid/config/testing.py')
| -rw-r--r-- | pyramid/config/testing.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/pyramid/config/testing.py b/pyramid/config/testing.py index 7141a5049..2ab85b1f5 100644 --- a/pyramid/config/testing.py +++ b/pyramid/config/testing.py @@ -37,19 +37,11 @@ class TestingConfiguratorMixin(object): not provided (or it is provided, and is ``None``), the default value ``[]`` (the empty list) will be returned by ``remember``. - .. note:: - - ``remember_result`` is new as of Pyramid 1.4. - ``forget_result``, if provided, should be the result returned by the ``forget`` method of the faux authentication policy. If it is not provided (or it is provided, and is ``None``), the default value ``[]`` (the empty list) will be returned by ``forget``. - .. note:: - - ``forget_result`` is new as of Pyramid 1.4. - The behavior of the registered :term:`authentication policy` depends on the values provided for the ``userid`` and ``groupids`` argument. The authentication policy will return @@ -64,6 +56,12 @@ class TestingConfiguratorMixin(object): :func:`pyramid.security.authenticated_userid`, :func:`pyramid.security.effective_principals`, and :func:`pyramid.security.principals_allowed_by_permission`. + + .. versionadded:: 1.4 + The ``remember_result`` argument. + + .. versionadded:: 1.4 + The ``forget_result`` argument. """ from pyramid.testing import DummySecurityPolicy policy = DummySecurityPolicy( |
