? 前面已经提到,pytest和unittest是兼容的,但是它也有不兼容的地方,比如ddt数据驱动,测试夹具fixtures(即setup、teardown)这些功能在pytest中都不能使用了,因为pytest已经不再继承unittest了。 ? 不使用ddt数据驱动那pytest是如何实现参数 ...
分类:
其他好文 时间:
2021-05-24 00:35:30
阅读次数:
0
centos7 修改yum源为阿里源 # 备份旧配置信息 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak # 下载阿里云源 wget -O /etc/yum.repos.d/CentOS-Base. ...
分类:
系统相关 时间:
2021-05-24 00:17:21
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=<device-width>, initial-scale=1.0"> <title>Documen ...
分类:
其他好文 时间:
2021-05-23 23:02:35
阅读次数:
0
什么是Helm 简单来说就是Kubernetes的包管理工具,类似于Centos的yum或Ubuntu的apt。不过他管理的是Kubernetes的yaml文件 组件(2.0与3.0) 在2.0的时候区分为客户端与服务端 客户端: 本地chart的编写 仓库的管理 与服务端Tiller交互 发送ch ...
分类:
其他好文 时间:
2021-05-04 16:04:31
阅读次数:
0
注意:需要在配置好OpenGL的编程环境中运行下列代码,环境配置文章可参考: OpenGL在Mac项目上的配置 下面的代码,直接放置在main.cpp文件中即可: #include "GLTools.h" #include "GLShaderManager.h" #include <GLUT/GLU ...
分类:
其他好文 时间:
2021-05-04 15:45:06
阅读次数:
0
注意:需要在配置好OpenGL的编程环境中运行下列代码,环境配置文章可参考: OpenGL在Mac项目上的配置 下面的代码,直接放置在main.cpp文件中即可: #include "GLTools.h" #include "GLFrustum.h" #include <GLUT/GLUT.h> G ...
分类:
其他好文 时间:
2021-05-04 15:44:15
阅读次数:
0
解决办法: 编辑 --> 首选项 --> Advanced --> 选择 “Use software-only mode” (默认是:Use Gpu ...) ...
分类:
其他好文 时间:
2021-05-03 12:55:31
阅读次数:
0
本机配置 centos 7 x86_64 conda 4.10.1 首先我们需要安装Mamba,既然是用来加速Conda,那么我们可以直接使用下列命令来安装Mamba: conda install -c conda-forge mamba 安装完成之后,当你运行mamba -V查看其版本时会发现返回 ...
分类:
编程语言 时间:
2021-05-03 12:07:00
阅读次数:
0
使用准备 - 下载安装 下载安装 v_box , 下载安装 Vagrant 创建 Vagrantfile 在要安装的目录中进行 vagrant init centos/7 下载镜像生成虚拟机 vargrant up 如果本地是有镜像的话则会使用本地镜像, 若没有则下载网络镜像需要一些时间 执行完毕后 ...
分类:
其他好文 时间:
2021-05-03 11:58:00
阅读次数:
0
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo-backupwget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/rep ...
分类:
其他好文 时间:
2021-05-03 11:53:06
阅读次数:
0