Pylons:nosetests,指定development.ini的位置?

发布于 2024-09-30 10:53:50 字数 462 浏览 1 评论 0原文

我正在远程服务器上运行nosetests

在我的本地服务器上,我的 test.inidevelopment.ini 文件位于同一目录中。在我的远程服务器上,它们不是。

运行

nosetests

如果我尝试仅在远程服务器上

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

,我会得到:是否有一个选项可以指定 development.ini 的位置(而不是 test.ini,其中我认为您可以在命令行中使用 --config=) ?如果可能的话,我不想编辑 setup.cfg

谢谢!

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 possible.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

樱娆 2024-10-07 10:53:50

安装到 Pylons 安装的 virtualenv 中的鼻子测试版本应该有一个鼻子插件,允许您指定指向您的 development.ini--with-pylons 参数。

所以

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

在服务器上尝试一下。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文