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.
Files changed (29) hide show
  1. hellchin_lib-0.1.400/CHANGELOG.md +11 -0
  2. hellchin_lib-0.1.400/MANIFEST.in +3 -0
  3. hellchin_lib-0.1.400/PKG-INFO +91 -0
  4. hellchin_lib-0.1.400/hellchin_lib.egg-info/PKG-INFO +91 -0
  5. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib.egg-info/SOURCES.txt +2 -0
  6. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/pyproject.toml +3 -3
  7. hellchin_lib-0.1.400/setup.py +36 -0
  8. hellchin_lib-0.1.2/PKG-INFO +0 -11
  9. hellchin_lib-0.1.2/hellchin_lib.egg-info/PKG-INFO +0 -11
  10. hellchin_lib-0.1.2/setup.py +0 -30
  11. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/LICENSE +0 -0
  12. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/README.md +0 -0
  13. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/__init__.py +0 -0
  14. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/__init__.py +0 -0
  15. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/base_soft_assert.py +0 -0
  16. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/logger.py +0 -0
  17. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/method_assert.py +0 -0
  18. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/assertion/postman.py +0 -0
  19. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/_hellchin_lib/logger.py +0 -0
  20. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib/__init__.py +0 -0
  21. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib.egg-info/dependency_links.txt +0 -0
  22. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib.egg-info/requires.txt +0 -0
  23. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/hellchin_lib.egg-info/top_level.txt +0 -0
  24. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/setup.cfg +0 -0
  25. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/__init__.py +0 -0
  26. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/test_soft_assert/__init__.py +0 -0
  27. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/test_soft_assert/test_demo.py +0 -0
  28. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/test_soft_assert/test_method_assert.py +0 -0
  29. {hellchin_lib-0.1.2 → hellchin_lib-0.1.400}/tests/test_soft_assert/test_soft_assert.py +0 -0
@@ -0,0 +1,11 @@
1
+ # 更新日志
2
+
3
+ ## [0.1.2] - 2024-12-27
4
+ ### 新增
5
+ - pm 断言: 添加 undefined 处理
6
+
7
+ ### 修复
8
+ - 修复了一些问题
9
+
10
+ ### 改进
11
+ - 优化了一些细节代码和冗余
@@ -0,0 +1,3 @@
1
+ include README.md
2
+ include CHANGELOG.md
3
+ include LICENSE
@@ -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
+ - 优化了一些细节代码和冗余
@@ -1,4 +1,6 @@
1
+ CHANGELOG.md
1
2
  LICENSE
3
+ MANIFEST.in
2
4
  README.md
3
5
  pyproject.toml
4
6
  setup.py
@@ -2,6 +2,6 @@
2
2
  requires = ["setuptools", "wheel"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
- [tool.poetry]
6
- readme = "README.md"
7
- changelog = "CHANGELOG.md"
5
+ #[tool.poetry]
6
+ #readme = "README.md"
7
+ #changelog = "CHANGELOG.md"
@@ -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
+ )
@@ -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
@@ -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