Metadata-Version: 2.1
Name: unitauto
Version: 1.0.2
Summary: An unit testing platform powered by machine learning. Coding-free, comprehensive and automatic testing for methods/functions
Home-page: https://github.com/TommyLemon/unitauto-py
Author: TommyLemon
Author-email: tommylemon@qq.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# unitauto-py 
UnitAuto Python 库，可通过 pip 仓库等远程依赖。<br />
UnitAuto Python Library for remote dependencies with pip, etc.

同步纯函数：<br />
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L39-L40
<img width="1217" alt="image" src="https://github.com/TommyLemon/unitauto-py/assets/5738175/9ce1a1d1-883b-40be-bc77-7ed7da6f9ff6">

class 内成员函数：<br />
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L111-L112
<img width="1279" alt="image" src="https://github.com/TommyLemon/unitauto-py/assets/5738175/2436b0d2-54f4-4c5a-be9c-c9618a258df2">

async & await 协程异步函数：<br />
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L63-L67
<img width="1280" alt="image" src="https://github.com/TommyLemon/unitauto-py/assets/5738175/100a6605-2c37-4c51-92ea-a6ae080c0ab4">

异步回调函数：<br />
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L70-L83
<img width="1281" alt="image" src="https://github.com/TommyLemon/unitauto-py/assets/5738175/101c3736-93bc-409c-8f9f-b189e13cb06b">
<img width="1496" alt="image" src="https://github.com/TommyLemon/unitauto-py/assets/5738175/3e7ed198-29bb-4094-ab40-e32c7650cf8b">

<br />

## 使用
## Usage

#### 1. 在你的项目中添加依赖
#### 1. Add dependency to your project
```sh
	pip install unitauto
```
如果执行以上命令未成功，则将 pip 换成 pip3 试试：<br />
if you cannot run the command successfully, try pip3:
```sh
	pip3 install unitauto
```

<br />

#### 2. 运行 main.py
#### 2. Run main.py
```sh
	python main.py
```
如果执行以上命令未成功，则将 python 换成 python3 试试：<br />
if you cannot run the command successfully, try python3:
```sh
	python3 main.py
```

<br />

#### 3. 参考主项目文档来测试
#### 3. Test by following the main repo

https://github.com/TommyLemon/UnitAuto
