summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-09-10 23:51:17 -0400
committerChris McDonough <chrism@plope.com>2012-09-10 23:51:17 -0400
commit28dba04ad96aca432b1b55719c960c7e8837191c (patch)
tree32784d761e24034bf049e08cd0a53afe720d3e39
parente0c4bd2c0c4a5fdf7048db9c6a0ca471a445e4df (diff)
downloadpyramid-28dba04ad96aca432b1b55719c960c7e8837191c.tar.gz
pyramid-28dba04ad96aca432b1b55719c960c7e8837191c.tar.bz2
pyramid-28dba04ad96aca432b1b55719c960c7e8837191c.zip
- ``pyramid.testing.DummyRequest`` now supports methods supplied by the
``pyramid.util.InstancePropertyMixin`` class such as ``set_property``.
-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