diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2013-09-05 23:05:41 -0600 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2013-09-05 23:05:41 -0600 |
| commit | 6ef10d66720c0965764cca1a743db3997621392a (patch) | |
| tree | 7d95b1470fbab6403c43b4919721beae1a77be91 | |
| parent | e8b1cf5dbb6353c0eead76996d1c002440bd6b89 (diff) | |
| download | pyramid-6ef10d66720c0965764cca1a743db3997621392a.tar.gz pyramid-6ef10d66720c0965764cca1a743db3997621392a.tar.bz2 pyramid-6ef10d66720c0965764cca1a743db3997621392a.zip | |
Fix DummyRequest so that response is created each time
Due to only creating the DummyRequest once various mutations were
bleeding across various different tests. With hilarious results.
| -rw-r--r-- | pyramid/tests/test_config/test_views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/tests/test_config/test_views.py b/pyramid/tests/test_config/test_views.py index 5ae97215e..00d04de7c 100644 --- a/pyramid/tests/test_config/test_views.py +++ b/pyramid/tests/test_config/test_views.py @@ -3852,7 +3852,6 @@ class DummyResponse(object): class DummyRequest: subpath = () matchdict = None - response = DummyResponse() def __init__(self, environ=None): if environ is None: @@ -3860,6 +3859,7 @@ class DummyRequest: self.environ = environ self.params = {} self.cookies = {} + self.response = DummyResponse() class DummyContext: pass |
