阅读背景:

在Python unittest框架中修改全局变量

来源:互联网 

I am working on a series of unit tests in Python, some of which depend on the value of a configuration variable. These variables are stored in a global Python config file and are used in other modules. I would like to write unit tests for different values of the configuration variables but have not yet found a way to do this.I am working on a series of unit tests in Pytho




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: