]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test/common_web.py: add a .fields attribute to our FakeRequest, since we support...
authorBrian Warner <warner@allmydata.com>
Wed, 25 Feb 2009 00:20:50 +0000 (17:20 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 25 Feb 2009 00:20:50 +0000 (17:20 -0700)
src/allmydata/test/common_web.py

index 9f05f9b604676e325bb69f6bcb9fa685ae1028b6..8b6a6474c7edadf76e01c690a95b1816aefbec90 100644 (file)
@@ -30,6 +30,7 @@ class WebRenderingMixin:
         # use this to exercise an overridden renderHTTP, usually for
         # output=json or render_GET. It always returns a Deferred.
         req = FakeRequest(**kwargs)
+        req.fields = None
         ctx = self.make_context(req)
         d = defer.maybeDeferred(page.renderHTTP, ctx)
         def _done(res):