[Repoze-dev] Integration testing with imperative configuration

2010-04-27 Thread Chris Withers
Hi All, 19.3 in the book covers writing integration tests by loading zcml. In a rare lack of symetry for the book, it doesn't cover the same for imperative configuration. Where can I find integration testing examples when using imperative configuration? cheers, Chris

Re: [Repoze-dev] Integration testing with imperative configuration

2010-04-27 Thread Chris McDonough
On 4/27/10 7:27 AM, Chris Withers wrote: Hi All, 19.3 in the book covers writing integration tests by loading zcml. In a rare lack of symetry for the book, it doesn't cover the same for imperative configuration. Where can I find integration testing examples when using imperative

Re: [Repoze-dev] Integration testing with imperative configuration

2010-04-27 Thread Chris McDonough
On 4/27/10 8:41 AM, Chris Withers wrote: Chris McDonough wrote: Instead of calling config.load_zcml there, do whatever your application does to configure itself in its run.py (often .scan()), e.g.: class ViewIntegrationTests(unittest.TestCase): def setUp(self): import myapp self.config =