On Mon, Jul 7, 2008 at 10:52 AM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > > hm... > > in this instance, i use g for three things: > > 1- on startup, i pull constants out of the DB and stash them into g > 2- misc form classes refer to g as the values to use for validation > 3- templates use them to generate dropdowns > > i guess i could use some sort of factory function to pull g on each > form init.
What's wrong with using paste.loadapp to properly set 'g' for every test that needs it? That way your test environment is the closest to the production environment -- which is the purpose of having tests in the first place. -- Mike Orr <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
