pylons.config is broken in 1.0 (although some folks on IRC would argue that it's a feature). To work around the bug I have add the following line to environment.py:
pylons.config.update(config) See the full file here: http://pastie.org/984565 -- Cheers, ev On Sun, May 30, 2010 at 2:19 AM, Evgeny <[email protected]> wrote: > All functional tests go well, so sure yes. > and pylons.test.pylonsapp.config is available. > But pylons.config is empty. > > > On May 30, 5:06 am, Wyatt Baldwin <[email protected]> wrote: > > On May 29, 5:57 pm, Evgeny <[email protected]> wrote: > > > > > I'm switching from 0.9.7 to 1.0 and have a question. Changed my code > > > as in upgrade manual. > > > > > I'm using pylons.config in one of my functions in lib/helpers.py > > > And testing it with nosetests. > > > > > Just noticed that pylons.config is an empty structure during test. > > > > > Is it a bug? Or any way to refer pylons config during tests? > > > > Are you using Nose's --with-pylons option? > > -- > 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]<pylons-discuss%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > > -- 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.
