Previously Shannon -jj Behrens wrote: > > On Sun, Jun 8, 2008 at 3:36 AM, Wichert Akkerman <[EMAIL PROTECTED]> wrote: > > Does anyone have tips or example code for getting some test data into a > > (beaker) session so a controller that's being tested can pick that up? > > If I were in your shoes, I would do some variation of the following: > > * Put a password in your .ini file. > * Create a controller method that checks whether the md5 of some query > parameter matches the md5 of the password. If so, it loads the > session.
I don't want to add controller methods just to be able to run a unittest. I want to either get some real data in or add some mocks somewhere so I can test my controller in isolation. I'm not trying to be difficult - I just don't want to turn a unittest into an integration test. Wichert. -- Wichert Akkerman <[EMAIL PROTECTED]> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---