开发者

Pylons: nosetests, specify location of development.ini?

I'm running nosetests on a remote server.

On my local server my test.ini and development.ini files are in the same directory. On my remote server, they are not.

If I try to run just

nosetests

on the remote server, I get:

IOError: File '/foo/bar/development.ini' not found

Is there an option to specify the location of development.ini (as opposed to test.ini, for which I think you could use --config=) in on the command line? I don't want to edit setup.cfg if pos开发者_如何学编程sible.

Thanks!


The nosetests version installed into you virtualenv of the Pylons installation should have a nose plugin that allows you to specify a --with-pylons parameter pointing to your development.ini.

So try

$ nosetests --with-pylons=<your path>/development.ini

on the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜