semvec/pypi-packages huggingface dataset:
hellchin 0.0.1
一个属于软件测试工程师使用的工具库.

# hellchin-lib

## 简介
个人开发使用的一些工具包，主要用于自动化测试，目前主要开发断言功能，支持软硬断言。

## 安装
```bash
pip install hellchin-lib
```

## 项目关键结构

项目文件结构如下：

```aiignore
my_tool/
├── my_tool/            # 项目的源代码目录。
│   ├── __init__.py
│   ├── main.py
├── setup.py            # 项目的安装脚本，用于将项目打包为可安装的包。
├── pyproject.toml      # 项目配置文件，用于定义项目信息、依赖项等。
├── README.md           # 项目说明文件。
├── LICENSE             # 项目许可证文件。
└── requirements.txt    # 项目依赖的第三方库列表。
```




## 使用方法

！！！详细教程有空的时候再进行更新

建议教程如下：

示例代码：

```python
# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
 -------------------------------------------------
    File Name:     test_demo.py
    Description:   
 -------------------------------------------------
 """

from hellchin import PostManAssertMethod, MethodAssert

pm = PostManAssertMethod()
pm.response = {
    "a": 1
}

# raise Exception("测试")
pm_code_test = """
# pm.expect(1).to.equal(2)
pm.test("", lambda: pm.expect('1').to.equal(1))
pm.test("失败断言", lambda: pm.expect(1).to.equal(2))
pm.test("", lambda: pm.expect(1).to.equal(1))
pm.test("成功断言", lambda: pm.expect(1).to.equal(1))
res = pm.response.json()
pm.test("undefined 测试", lambda: pm.expect(res.b).to.equal(1))
# pm.expect(res.b).to.equal(1)
"""

exec(pm_code_test, {"pm": pm})

ma_code_test = """
method_assert.check(1 == 1)
method_assert.check(1 == 2)
method_assert.equal(1, 1)
method_assert.equal(1, 2)
method_assert.exists(1)
method_assert.fail()
"""

# exec(ma_code_test, {"method_assert": MethodAssert()})

```


## 文档链接

更多文档请访问：None


# 更新日志

## [0.1.401] - 2024-1-3
### 新增
- pm 断言: 添加 undefined 处理

### 修复
- 修复了一些问题
- 修复日志无引用问题

### 改进
- 优化了一些细节代码和冗余
sarada 0.2.0
Add your description here
Requires Python: >=3.12

# hello-world - The default project (change me).

[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-green.svg?style=flat-square)](https://conventionalcommits.org)
[![PyPI](https://img.shields.io/pypi/v/{{ NAME }}?style=flat-square)](https://pypi.org/project/{{ NAME }}/)
![Maintenance](https://img.shields.io/maintenance/yes/2025?style=flat-square)

Default to using justfile as local script holder
Testing out using uv
Using poetry for management, etc.
In nix, nix fmt does formatting for everything.

# Getting started

1. You may need to initialise a git repository.
 * `git init`, `git add .`, `git commit -m "initial commit"`

2. Double check if you need to update nixpkgs, update python version etc.
 * in nix, some version of `nix flake update`, changing python version in flake.nix etc.

3. The placeholder names used throughout are not all consistent at all.
Sorry.
Iteratively bug slaying should get you there.

4. Get a dev shell to play around.
Probably allowing direnv will be the easiest startup.
Remember that it won't work until you fix all the placeholder names and make an initial commit.
So

5. Do that.

## dev

Build with `just`, preferred over `do.sh` I think.

## CLI

Details of how to use this cli in this project