summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt3
-rw-r--r--pyramid/testing.py3
2 files changed, 5 insertions, 1 deletions
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