diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-11-15 23:43:26 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-11-15 23:43:26 +0000 |
| commit | 2dc0b5f7e57721b9a9d56b6dfdc07cbb3e929ac8 (patch) | |
| tree | 8cb74d134403bcb0345b354ca7caab6610888378 | |
| parent | 6d8615e32eb41e0985f50af880cc4e3900f68ad5 (diff) | |
| download | pyramid-2dc0b5f7e57721b9a9d56b6dfdc07cbb3e929ac8.tar.gz pyramid-2dc0b5f7e57721b9a9d56b6dfdc07cbb3e929ac8.tar.bz2 pyramid-2dc0b5f7e57721b9a9d56b6dfdc07cbb3e929ac8.zip | |
Add content_length attr to testing.DummyRequest.
| -rw-r--r-- | CHANGES.txt | 2 | ||||
| -rw-r--r-- | repoze/bfg/testing.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index d4dd9efea..acab4a605 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,7 @@ Next release + - Add content_length attribute to testing.DummyRequest. + - Change paster template ``tests.py`` to include a true unit test. Retain old test as an integration test. Update documentation. diff --git a/repoze/bfg/testing.py b/repoze/bfg/testing.py index a7fc12827..cec14ea06 100644 --- a/repoze/bfg/testing.py +++ b/repoze/bfg/testing.py @@ -256,6 +256,7 @@ class DummyRequest: method = 'GET' application_url = 'http://example.com' host = 'example.com:80' + content_length = 0 def __init__(self, params=None, environ=None, headers=None, path='/', cookies=None, **kw): if environ is None: |
