当前位置:网站首页>3.2 naming rules of test classes
3.2 naming rules of test classes
2022-06-11 22:10:00 【redrose2100】
3.2.1 Naming rules for test classes
Before that , All test cases are written in the form of test functions , In fact, test functions can also be encapsulated in test classes , For example, all test cases of a module are encapsulated in a test class , So here is how to name the test class , Just name it casually , Of course not , The following is an example to demonstrate and verify the naming rules of the test class
The test class shall be named with Test start , And the test class cannot have __init__ Initialize playback method
Let's take a look at the following test case code (https://gitee.com/redrose2100/pytest-demo/blob/master/ch03/ex_002/test_demo.py)
class TestDemo(object):
def test_demo(self):
print("in TestDemo ...")
assert 1==1
class testDemo(object边栏推荐
- Classes and objects (4)
- go os模块
- STM32开发笔记113:ADS1258驱动设计——读取温度值
- Use the securecrtportable script function to read data from network devices
- How to use the transaction code sat to find the name of the background storage database table corresponding to a sapgui screen field
- Is the securities account recommended by qiniu safe? Is it reliable
- LeetCode栈题目总结
- Top - k问题
- 链表基本操作与题型总结
- Why is the printer unable to print the test page
猜你喜欢

win11怎么看电脑显卡信息

Glory earbud 3 Pro with three global first strong breakdowns flagship earphone Market

5.学城项目 支付宝支付

6.项目上线

BUUCTF(5)

科普 | NFT的类型有哪些(上)

The device is in use when win10 ejects USB
![[Chongqing Guangdong education] college physics of Xiangtan University: mechanical and thermal reference materials](/img/64/683a190d14406a9971edd79037cc97.jpg)
[Chongqing Guangdong education] college physics of Xiangtan University: mechanical and thermal reference materials

超标量处理器设计 姚永斌 第2章 Cache --2.2 小节摘录

【LeetCode】11. Container with the most water
随机推荐
Popular science | what are the types of NFT (Part 1)
swiper——单页面多轮播插件冲突解决方案
69. square root of X
6.项目上线
Daily question - Roman numeral to integer
LeetCode栈题目总结
Superscalar processor design yaoyongbin Chapter 2 cache -- Excerpt from subsection 2.4
学习位段(1)
Superscalar processor design yaoyongbin Chapter 2 cache -- Excerpt from subsection 2.3
玩家必读|Starfish NFT进阶攻略
Go OS module
Zhanrui IOT chip 8910dm is certified by Deutsche Telekom
Simple example of logistic regression for machine learning
重温c语言一
Superscalar processor design yaoyongbin Chapter 2 cache -- Excerpt from subsection 2.2
How to use the transaction code sat to find the name trial version of the background storage database table corresponding to a sapgui screen field
什么是死锁?(把死锁给大家讲明白,知道是什么,为什么用,怎么用)
详解异步任务:函数计算的任务触发去重
win11怎么看电脑显卡信息
高考结束,人生才刚刚开始,10年职场老鸟给的建议