上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 32 下一页
摘要: vscode 用markdown 语法写slides https://sspai.com/post/55718 https://blog.csdn.net/m0_53790443/article/details/118153707 https://www.jianshu.com/p/70382d05 阅读全文
posted @ 2022-04-11 17:08 michaelchengjl 阅读(64) 评论(0) 推荐(0) 编辑
摘要: Pytest的setup和teardown pytest实际上是python自带测试框架unittest的扩展,那么pytest是如何实现unittest中的setup和teardown的呢? pytest初始化的类别和作用域 模块级别(Module level setup/teardown):作用 阅读全文
posted @ 2022-04-11 16:50 michaelchengjl 阅读(238) 评论(0) 推荐(0) 编辑
摘要: pytest 测试命名规则 在自动化测试项目中,单元测试框架运行时需要先搜索测试模块(即测试用例所在的.py文件),然后在测试模块中搜索测试类或测试函数,接着在测试类中搜索测试方法,最后加入到队列中,再按执行顺序执行测试。 所以,只有测试模块、测试类/测试函数、测试方法都符合命名规则,框架才能去识别 阅读全文
posted @ 2022-04-11 16:20 michaelchengjl 阅读(322) 评论(0) 推荐(0) 编辑
摘要: numpy存取数据(tofile/fromfile) 我们知道numpy的array是可以保存到文件的,一个常用的做法是通过to_file()保存到而进行.bin文件中,然后再通过from_file()从.bin文件中将其读取出来,下面看一个例子。 data_in 是一个二维numpy数组,其sha 阅读全文
posted @ 2022-03-03 11:50 michaelchengjl 阅读(4915) 评论(0) 推荐(0) 编辑
摘要: Gitlab 官方文档以及参考资料 复制的官方GitLab 文档 参考资料 https://www.cnblogs.com/cjsblog/p/12256843.html https://www.cnblogs.com/schblog/tag/devOps%E6%B5%81%E7%A8%8B/ ht 阅读全文
posted @ 2022-02-27 20:49 michaelchengjl 阅读(444) 评论(0) 推荐(0) 编辑
摘要: devops-Gitlab-CI-CD 1. docker安装部署gitlab 2. GitLab Runner 3. GitLab Runner执行流程 runner-execution-flow 4. GitLab CI/CD Pipeline与jobs的概念 5. GitLab Runner 阅读全文
posted @ 2022-02-26 22:20 michaelchengjl 阅读(351) 评论(0) 推荐(0) 编辑
摘要: Python 如何将字符串转为字典 在工作中遇到一个小问题,需要将一个 python 的字符串转为字典,比如字符串: user_info = '{"name" : "json" , "gender": "male", "age": 28}' 我们想把它转为下面的字典: user_info = {"n 阅读全文
posted @ 2022-02-15 20:05 michaelchengjl 阅读(547) 评论(0) 推荐(1) 编辑
摘要: 一 、docker环境下的Grafana安装 1. 安装grafana 查看可用image [root@DL ~]# docker search grafana NAME DESCRIPTION STARS OFFICIAL AUTOMATED grafana/grafana The officia 阅读全文
posted @ 2022-01-21 16:07 michaelchengjl 阅读(989) 评论(0) 推荐(0) 编辑
摘要: pytest 内置和自定义marker 可以通过命令行查看所有marker,包括内置和自定义的 pytest --markers 内置marker包括usefixtures 、filterwarnings 、skip 、skipif 、xfail这5个。参数化的marker在pytest参数化中有介 阅读全文
posted @ 2021-12-24 17:30 michaelchengjl 阅读(370) 评论(0) 推荐(0) 编辑
摘要: python-ldap 简单试用 1. 安装python-ldap3 pip3 install ldap3 2. 调用 from ldap3 import Server, Connection, SAFE_SYNC server = Server('172.16.XXX.XXX') conn = C 阅读全文
posted @ 2021-12-24 15:21 michaelchengjl 阅读(335) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 32 下一页