Following up from some advice I received on the irc channel, I'm having 
some problems getting Paste Deploy working with my nosetests.

I added:

conf_path = path.abspath(path.dirname(__file__) + 
u'/../docs/devel_config.ini')
conf = paste.deploy.appconfig('config:'+conf_path)
CONFIG.push_process_config(conf)
print CONFIG

to my tests.py.  However my CONFIG only contains:
['__file__', '/static', 'here', '/']

and doesn't contain any of the variables from my config file (notabley 
from the [app:test] section which I want to access).  I think maybe 
there's something else I need to do that involves asking for the 
[app:test] section.

As a side point, is there a better way to insert a relative link to my 
config file from my tests?

Many thanks

Ed


_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to