没有合适的资源?快使用搜索试试~ 我知道了~
pytest-inmanta:一个pytest插件来测试inmanta模块
共46个文件
py:26个
yml:5个
cf:4个
需积分: 5 0 下载量 3 浏览量
2021-04-09
02:56:49
上传
评论
收藏 41KB ZIP 举报
温馨提示
pytest-inmanta 一个pytest插件来测试inmanta模块 安装 pip install pytest-inmanta 用法 该插件提供了一个测试夹具,可以在不运行实际inmanta服务器的情况下编译,导出和部署代码。 def test_compile ( project ): """ Test compiling a simple model that uses std """ project . compile ( """ host = std::Host(name="server", os=std::linux) file = std::ConfigFile(host=host, path="/tmp/test", content="1234") """ ) 夹具还提供对模型内部零件的访问 asse
资源推荐
资源详情
资源评论
收起资源包目录
pytest-inmanta-master.zip (46个子文件)
pytest-inmanta-master
setup.py 1KB
.gitignore 1KB
.ci-pyp.yml 91B
requirements.txt 46B
.ci-integration-tests.yml 161B
MANIFEST.in 45B
.bumpversion.cfg 94B
LICENSE 11KB
CHANGELOG.md 2KB
setup.cfg 2KB
.github
pull_request_template.md 696B
examples
testhandler
model
_init.cf 0B
module.yml 45B
tests
test_handler.py 4KB
test_ignore_resource.py 1KB
test_dryrun.py 1KB
testsync
model
_init.cf 182B
module.yml 50B
tests
test_stuff.py 325B
plugins
__init__.py 1KB
testmodule
model
_init.cf 329B
module.yml 51B
tests
test_dryrun.py 411B
test_location.py 289B
test_resource_run.py 477B
test_multiple_repo_paths.py 727B
test_BadLog.py 328B
test_project_no_plugins.py 177B
test_capture.py 281B
test_reset.py 302B
test_reflection.py 1KB
test_import.py 2KB
plugins
submod.py 117B
__init__.py 2KB
README.md 5KB
tests
conftest.py 1KB
test_options.py 2KB
test_basic_example.py 4KB
test_handlers.py 954B
pytest.ini 40B
pytest_inmanta
__init__.py 627B
plugin.py 26KB
module
init.py 3KB
init.cf 1KB
handler.py 721B
.editorconfig 245B
共 46 条
- 1
资源评论
weixin_42138139
- 粉丝: 18
- 资源: 4653
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功