My tests use two CSV files as a large part of my program involves interpreting and then posting data to elasticsearch. When running PyBuilder, it can't find these files since it's running from a different directory. For example, one of the errors I get is this:
我的测试使用两个CSV文件,因为我的程序的很大一部分涉及解释然后将数据发布到elasticsearch。运行PyBuilder时,它找不到这些文件,因为它是从不同的目录运行的。例如,我得到的一个错误是:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.6/site-packages/PythonUtilities-1.0-py3.6.egg/tests/in/data.csv'
How can I configure PyBuilder in a way that allows me to work with the files that are in the same directory as my tests?
如何以允许我使用与我的测试位于同一目录中的文件的方式配置PyBuilder?
1 个解决方案
#1
0
Used a Manifest.in file to specify what files Pybuilder should add.
使用Manifest.in文件指定Pybuilder应添加的文件。
#1
0
Used a Manifest.in file to specify what files Pybuilder should add.
使用Manifest.in文件指定Pybuilder应添加的文件。