hellchin-lib 0.1.2__tar.gz → 0.1.400__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hellchin_lib-0.1.400/CHANGELOG.md +11 -0
- hellchin_lib-0.1.400/MANIFEST.in +3 -0
- hellchin_lib-0.1.400/PKG-INFO +91 -0
- hellchin_lib-0.1.400/hellchin_lib.egg-info/PKG-INFO +91 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib.egg-info/SOURCES.txt +2 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/pyproject.toml +3 -3
- hellchin_lib-0.1.400/setup.py +36 -0
- hellchin_lib-0.1.2/PKG-INFO +0 -11
- hellchin_lib-0.1.2/hellchin_lib.egg-info/PKG-INFO +0 -11
- hellchin_lib-0.1.2/setup.py +0 -30
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/LICENSE +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/README.md +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/__init__.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/__init__.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/base_soft_assert.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/logger.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/method_assert.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/postman.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/logger.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib/__init__.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib.egg-info/dependency_links.txt +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib.egg-info/requires.txt +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib.egg-info/top_level.txt +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/setup.cfg +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/__init__.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/test_soft_assert/__init__.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/test_soft_assert/test_demo.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/test_soft_assert/test_method_assert.py +0 -0
- {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/test_soft_assert/test_soft_assert.py +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: hellchin_lib
|
|
3
|
+
Version: 0.1.400
|
|
4
|
+
Summary: A Python library for soft assertions and flexible testing.
|
|
5
|
+
Author: hellchin
|
|
6
|
+
Author-email: your.email@example.com
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: pytest>=6.0.0
|
|
13
|
+
|
|
14
|
+
# hellchin-lib
|
|
15
|
+
|
|
16
|
+
## 简介
|
|
17
|
+
个人开发使用的一些工具包,主要用于自动化测试,目前主要开发断言功能,支持软硬断言。
|
|
18
|
+
|
|
19
|
+
## 安装
|
|
20
|
+
```bash
|
|
21
|
+
pip install hellchin-lib
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## 使用方法
|
|
25
|
+
|
|
26
|
+
!!!详细教程有空的时候再进行更新
|
|
27
|
+
|
|
28
|
+
建议教程如下:
|
|
29
|
+
|
|
30
|
+
示例代码:
|
|
31
|
+
```python
|
|
32
|
+
# !/usr/bin/env python
|
|
33
|
+
# -*- coding: utf-8 -*-
|
|
34
|
+
"""
|
|
35
|
+
-------------------------------------------------
|
|
36
|
+
File Name: test_demo.py
|
|
37
|
+
Description:
|
|
38
|
+
-------------------------------------------------
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
from hellchin_lib import PostManAssertMethod, MethodAssert
|
|
42
|
+
|
|
43
|
+
pm = PostManAssertMethod()
|
|
44
|
+
pm.response = {
|
|
45
|
+
"a": 1
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
# raise Exception("测试")
|
|
49
|
+
pm_code_test = """
|
|
50
|
+
# pm.expect(1).to.equal(2)
|
|
51
|
+
pm.test("", lambda: pm.expect('1').to.equal(1))
|
|
52
|
+
pm.test("失败断言", lambda: pm.expect(1).to.equal(2))
|
|
53
|
+
pm.test("", lambda: pm.expect(1).to.equal(1))
|
|
54
|
+
pm.test("成功断言", lambda: pm.expect(1).to.equal(1))
|
|
55
|
+
res = pm.response.json()
|
|
56
|
+
pm.test("undefined 测试", lambda: pm.expect(res.b).to.equal(1))
|
|
57
|
+
# pm.expect(res.b).to.equal(1)
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
exec(pm_code_test, {"pm": pm})
|
|
61
|
+
|
|
62
|
+
ma_code_test = """
|
|
63
|
+
method_assert.check(1 == 1)
|
|
64
|
+
method_assert.check(1 == 2)
|
|
65
|
+
method_assert.equal(1, 1)
|
|
66
|
+
method_assert.equal(1, 2)
|
|
67
|
+
method_assert.exists(1)
|
|
68
|
+
method_assert.fail()
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
# exec(ma_code_test, {"method_assert": MethodAssert()})
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## 文档链接
|
|
77
|
+
|
|
78
|
+
更多文档请访问:None
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# 更新日志
|
|
82
|
+
|
|
83
|
+
## [0.1.2] - 2024-12-27
|
|
84
|
+
### 新增
|
|
85
|
+
- pm 断言: 添加 undefined 处理
|
|
86
|
+
|
|
87
|
+
### 修复
|
|
88
|
+
- 修复了一些问题
|
|
89
|
+
|
|
90
|
+
### 改进
|
|
91
|
+
- 优化了一些细节代码和冗余
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: hellchin_lib
|
|
3
|
+
Version: 0.1.400
|
|
4
|
+
Summary: A Python library for soft assertions and flexible testing.
|
|
5
|
+
Author: hellchin
|
|
6
|
+
Author-email: your.email@example.com
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: pytest>=6.0.0
|
|
13
|
+
|
|
14
|
+
# hellchin-lib
|
|
15
|
+
|
|
16
|
+
## 简介
|
|
17
|
+
个人开发使用的一些工具包,主要用于自动化测试,目前主要开发断言功能,支持软硬断言。
|
|
18
|
+
|
|
19
|
+
## 安装
|
|
20
|
+
```bash
|
|
21
|
+
pip install hellchin-lib
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## 使用方法
|
|
25
|
+
|
|
26
|
+
!!!详细教程有空的时候再进行更新
|
|
27
|
+
|
|
28
|
+
建议教程如下:
|
|
29
|
+
|
|
30
|
+
示例代码:
|
|
31
|
+
```python
|
|
32
|
+
# !/usr/bin/env python
|
|
33
|
+
# -*- coding: utf-8 -*-
|
|
34
|
+
"""
|
|
35
|
+
-------------------------------------------------
|
|
36
|
+
File Name: test_demo.py
|
|
37
|
+
Description:
|
|
38
|
+
-------------------------------------------------
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
from hellchin_lib import PostManAssertMethod, MethodAssert
|
|
42
|
+
|
|
43
|
+
pm = PostManAssertMethod()
|
|
44
|
+
pm.response = {
|
|
45
|
+
"a": 1
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
# raise Exception("测试")
|
|
49
|
+
pm_code_test = """
|
|
50
|
+
# pm.expect(1).to.equal(2)
|
|
51
|
+
pm.test("", lambda: pm.expect('1').to.equal(1))
|
|
52
|
+
pm.test("失败断言", lambda: pm.expect(1).to.equal(2))
|
|
53
|
+
pm.test("", lambda: pm.expect(1).to.equal(1))
|
|
54
|
+
pm.test("成功断言", lambda: pm.expect(1).to.equal(1))
|
|
55
|
+
res = pm.response.json()
|
|
56
|
+
pm.test("undefined 测试", lambda: pm.expect(res.b).to.equal(1))
|
|
57
|
+
# pm.expect(res.b).to.equal(1)
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
exec(pm_code_test, {"pm": pm})
|
|
61
|
+
|
|
62
|
+
ma_code_test = """
|
|
63
|
+
method_assert.check(1 == 1)
|
|
64
|
+
method_assert.check(1 == 2)
|
|
65
|
+
method_assert.equal(1, 1)
|
|
66
|
+
method_assert.equal(1, 2)
|
|
67
|
+
method_assert.exists(1)
|
|
68
|
+
method_assert.fail()
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
# exec(ma_code_test, {"method_assert": MethodAssert()})
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
## 文档链接
|
|
77
|
+
|
|
78
|
+
更多文档请访问:None
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# 更新日志
|
|
82
|
+
|
|
83
|
+
## [0.1.2] - 2024-12-27
|
|
84
|
+
### 新增
|
|
85
|
+
- pm 断言: 添加 undefined 处理
|
|
86
|
+
|
|
87
|
+
### 修复
|
|
88
|
+
- 修复了一些问题
|
|
89
|
+
|
|
90
|
+
### 改进
|
|
91
|
+
- 优化了一些细节代码和冗余
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# !/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""
|
|
4
|
+
-------------------------------------------------
|
|
5
|
+
File Name: setup.py
|
|
6
|
+
Description: 包的元信息
|
|
7
|
+
-------------------------------------------------
|
|
8
|
+
"""
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
from setuptools import setup, find_packages
|
|
12
|
+
|
|
13
|
+
# 确保路径基于 setup.py 所在目录
|
|
14
|
+
here = Path(__file__).parent
|
|
15
|
+
print(here)
|
|
16
|
+
readme = (here / "README.md").read_text(encoding="utf-8")
|
|
17
|
+
changelog = (here / "CHANGELOG.md").read_text(encoding="utf-8")
|
|
18
|
+
|
|
19
|
+
setup(
|
|
20
|
+
name="hellchin_lib", # 包名
|
|
21
|
+
version="0.1.400", # 版本号
|
|
22
|
+
description="A Python library for soft assertions and flexible testing.", # 描述
|
|
23
|
+
author="hellchin", # 作者
|
|
24
|
+
author_email="your.email@example.com", # 作者邮箱
|
|
25
|
+
packages=find_packages(), # 包列表: 自动查找所有包含__init__.py文件的目录
|
|
26
|
+
install_requires=[
|
|
27
|
+
"pytest>=6.0.0", # 依赖的包
|
|
28
|
+
],
|
|
29
|
+
classifiers=[ # 分类器列表
|
|
30
|
+
"Programming Language :: Python :: 3",
|
|
31
|
+
"License :: OSI Approved :: MIT License",
|
|
32
|
+
"Operating System :: OS Independent",
|
|
33
|
+
],
|
|
34
|
+
long_description=readme + "\n\n" + changelog,
|
|
35
|
+
long_description_content_type="text/markdown",
|
|
36
|
+
)
|
hellchin_lib-0.1.2/PKG-INFO
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: hellchin_lib
|
|
3
|
-
Version: 0.1.2
|
|
4
|
-
Summary: A Python library for soft assertions and flexible testing.
|
|
5
|
-
Author: hellchin
|
|
6
|
-
Author-email: your.email@example.com
|
|
7
|
-
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
-
Classifier: Operating System :: OS Independent
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Requires-Dist: pytest>=6.0.0
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: hellchin_lib
|
|
3
|
-
Version: 0.1.2
|
|
4
|
-
Summary: A Python library for soft assertions and flexible testing.
|
|
5
|
-
Author: hellchin
|
|
6
|
-
Author-email: your.email@example.com
|
|
7
|
-
Classifier: Programming Language :: Python :: 3
|
|
8
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
-
Classifier: Operating System :: OS Independent
|
|
10
|
-
License-File: LICENSE
|
|
11
|
-
Requires-Dist: pytest>=6.0.0
|
hellchin_lib-0.1.2/setup.py
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# !/usr/bin/env python
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
|
-
"""
|
|
4
|
-
-------------------------------------------------
|
|
5
|
-
File Name: setup.py
|
|
6
|
-
Description: 包的元信息
|
|
7
|
-
-------------------------------------------------
|
|
8
|
-
"""
|
|
9
|
-
from pathlib import Path
|
|
10
|
-
|
|
11
|
-
from setuptools import setup, find_packages
|
|
12
|
-
|
|
13
|
-
setup(
|
|
14
|
-
name="hellchin_lib", # 包名
|
|
15
|
-
version="0.1.2", # 版本号
|
|
16
|
-
description="A Python library for soft assertions and flexible testing.", # 描述
|
|
17
|
-
author="hellchin", # 作者
|
|
18
|
-
author_email="your.email@example.com", # 作者邮箱
|
|
19
|
-
packages=find_packages(), # 包列表: 自动查找所有包含__init__.py文件的目录
|
|
20
|
-
install_requires=[
|
|
21
|
-
"pytest>=6.0.0", # 依赖的包
|
|
22
|
-
],
|
|
23
|
-
classifiers=[ # 分类器列表
|
|
24
|
-
"Programming Language :: Python :: 3",
|
|
25
|
-
"License :: OSI Approved :: MIT License",
|
|
26
|
-
"Operating System :: OS Independent",
|
|
27
|
-
],
|
|
28
|
-
# long_description=(Path("README.md").read_text() + "\n\n" + Path("CHANGELOG.md").read_text()),
|
|
29
|
-
# long_description_content_type="text/markdown",
|
|
30
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|