Hi,
I use paste TestApp in my unit tests and it causes a problem to
pylons.config. when I do loadapp() it apparently clears my config keys
I setup before, e.g.:
def make_app(user=None):
config['XXX'] = 'xxx'
wsgiapp = loadapp('config:test.ini', relative_to=conf_dir)
print config['XXX'] # yields KeyError
extra_environ = {}
app = TestApp(wsgiapp, extra_environ=extra_environ)
return app
How should I structure my code so that my config keys "persist" such
invocations? Is it a bug in Paste/Pylons?
Max.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---