本文整理汇总了Python中pypackage.config.Config._verify方法的典型用法代码示例。如果您正苦于以下问题:Python Config._verify方法的具体用法?Python Config._verify怎么用?Python Config._verify使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pypackage.config.Config
的用法示例。
在下文中一共展示了Config._verify方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_additional_tests_require
# 需要导入模块: from pypackage.config import Config [as 别名]
# 或者: from pypackage.config.Config import _verify [as 别名]
def test_additional_tests_require(runner):
"""If there are provided tests_require, they should be mixed in."""
# we get runner-cov here becuase we provide a name
conf = Config(name="test", test_runner=runner, tests_require=["my_thing"])
assert conf.tests_require == ["my_thing", runner, "{}-cov".format(runner)]
assert conf.runner_args[-1] == "test"
# change our name here, we should get our new name in runner_args
conf.name = "changed"
# also we can reset tests_require and they should re-populate
conf.tests_require = ["my_thing"]
conf._verify()
assert conf.runner_args[-1] == "changed"