On Sat, May 29, 2010 at 11:19 PM, Evgeny <[email protected]> wrote: > All functional tests go well, so sure yes. > and pylons.test.pylonsapp.config is available. > But pylons.config is empty.
Use pylons.test.pylonsapp.config, or self.app.config (in TestController). The problem is that the special globals are normally active only during a request. pylons.url is explicitly pushed in TestController.__init__ to make it available, and I suppose you could do the same for pylons.config . --Ben-- This needs to be documented. Everybody has trouble remembering how to get the config during tests. You can also execute the null request, "/_test_vars", which updates the globals and does nothing else. See http://pylonshq.com/docs/en/1.0/testing/ . -- 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.
