diff options
| author | Chris McDonough <chrism@plope.com> | 2011-01-14 16:03:35 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-01-14 16:03:35 -0500 |
| commit | f2681ae753b9cc94f88b4cf47fa44714ff20216a (patch) | |
| tree | a216df1a33259f8e03a80ed579754f6880c7ea91 | |
| parent | 38dddeab91707908e7ee5c18ef76c73338081fcc (diff) | |
| download | pyramid-f2681ae753b9cc94f88b4cf47fa44714ff20216a.tar.gz pyramid-f2681ae753b9cc94f88b4cf47fa44714ff20216a.tar.bz2 pyramid-f2681ae753b9cc94f88b4cf47fa44714ff20216a.zip | |
- Add ``charset`` attribute to ``pyramid.testing.DummyRequest``
(unconditionally ``UTF-8``).
| -rw-r--r-- | CHANGES.txt | 3 | ||||
| -rw-r--r-- | pyramid/testing.py | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 73f0b3d4b..d8853593b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,9 @@ Features change designed to provide a facade that will protect against any future Configurator deprecations. +- Add ``charset`` attribute to ``pyramid.testing.DummyRequest`` + (unconditionally ``UTF-8``). + Paster Templates ---------------- diff --git a/pyramid/testing.py b/pyramid/testing.py index 5df833634..17012785b 100644 --- a/pyramid/testing.py +++ b/pyramid/testing.py @@ -566,6 +566,7 @@ class DummyRequest(object): content_length = 0 query_string = '' response_callbacks = () + charset = 'UTF-8' def __init__(self, params=None, environ=None, headers=None, path='/', cookies=None, post=None, **kw): if environ is None: |
