From 28dba04ad96aca432b1b55719c960c7e8837191c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 10 Sep 2012 23:51:17 -0400 Subject: - ``pyramid.testing.DummyRequest`` now supports methods supplied by the ``pyramid.util.InstancePropertyMixin`` class such as ``set_property``. --- CHANGES.txt | 3 +++ pyramid/testing.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 95a435ef4..693cb4fc6 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -144,6 +144,9 @@ Features to influence how the sessions are marshalled (by default this is done with HMAC+pickle). +- ``pyramid.testing.DummyRequest`` now supports methods supplied by the + ``pyramid.util.InstancePropertyMixin`` class such as ``set_property``. + Deprecations ------------ diff --git a/pyramid/testing.py b/pyramid/testing.py index c6682216f..750effb83 100644 --- a/pyramid/testing.py +++ b/pyramid/testing.py @@ -39,6 +39,7 @@ from pyramid.request import ( ) from pyramid.url import URLMethodsMixin +from pyramid.util import InstancePropertyMixin _marker = object() @@ -273,7 +274,7 @@ class DummySession(dict): @implementer(IRequest) class DummyRequest(DeprecatedRequestMethodsMixin, URLMethodsMixin, - CallbackMethodsMixin): + CallbackMethodsMixin, InstancePropertyMixin): """ A DummyRequest object (incompletely) imitates a :term:`request` object. The ``params``, ``environ``, ``headers``, ``path``, and -- cgit v1.2.3