[Grok-dev] Integration testing with zope.testbrowser and fanstatic
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Thu Jan 5 11:28:08 UTC 2012
On 3 January 2012 04:01, Noe Nieto <nnieto at noenieto.com> wrote:
> Hi.
<snip>
> class TestLayerWithInjector(ZopeFanstaticBrowserLayer):
This should be "testSetUp" (mind the capital U)
> def testSetup(self):
> super(TestLayerWithInjector, self).testSetup()
> #Because is difficult to dynamically register an entry_point in
> tests,
> #we do the setup by hand.
> resource_factory = create_factory(style)
> gsm = getGlobalSiteManager()
> gsm.registerAdapter(
> resource_factory,
> (IBrowserRequest, ),
> Interface,
> library.name
> )
HTH,
--
Jan-Jaap Driessen
More information about the Grok-dev
mailing list