From f2681ae753b9cc94f88b4cf47fa44714ff20216a Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 14 Jan 2011 16:03:35 -0500 Subject: - Add ``charset`` attribute to ``pyramid.testing.DummyRequest`` (unconditionally ``UTF-8``). --- CHANGES.txt | 3 +++ pyramid/testing.py | 1 + 2 files changed, 4 insertions(+) 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: -- cgit v1.2.3