mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
test/common_web.py: add a .fields attribute to our FakeRequest, since we support versions of Nevow that are old enough to not do it themselves
This commit is contained in:
parent
e1c925b373
commit
8d8250e44a
@ -30,6 +30,7 @@ class WebRenderingMixin:
|
|||||||
# use this to exercise an overridden renderHTTP, usually for
|
# use this to exercise an overridden renderHTTP, usually for
|
||||||
# output=json or render_GET. It always returns a Deferred.
|
# output=json or render_GET. It always returns a Deferred.
|
||||||
req = FakeRequest(**kwargs)
|
req = FakeRequest(**kwargs)
|
||||||
|
req.fields = None
|
||||||
ctx = self.make_context(req)
|
ctx = self.make_context(req)
|
||||||
d = defer.maybeDeferred(page.renderHTTP, ctx)
|
d = defer.maybeDeferred(page.renderHTTP, ctx)
|
||||||
def _done(res):
|
def _done(res):
|
||||||
|
Loading…
Reference in New Issue
Block a user