| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
FakeContext
A scaffolding class for testing renderers.
This will in general not be enough as most actions renderers do will require a running reactor, so you need trial. But sometimes it's all synchronous and this will do.
You can simulate a simple locateChild/renderHTTP cycle with runRequest(resource, path). This will, in particular, use a renderSync method on the page(s) if available. It will hand out exceptions as usual. It will return what's written to context and returned by renderHTTP.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Class Variables | |
__implemented__ = <implementedBy gavo.helpers.testhelpers.Fake
|
|
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Special descriptor for class __provides__ The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker. |
| Class Variable Details |
__implemented__
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |