codemod-unittest-to-pytest-asserts-1.2.0
توضیحات
Codemod to refactor unittest assertions to pytest assertions.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | codemod-unittest-to-pytest-asserts-1.2.0 |
| نام | codemod-unittest-to-pytest-asserts |
| نسخه کتابخانه | 1.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hans-Wilhelm Warlo |
| ایمیل نویسنده | hw@warlo.no |
| آدرس صفحه اصلی | https://github.com/hanswilw/codemod-unittest-to-pytest-asserts |
| آدرس اینترنتی | https://pypi.org/project/codemod-unittest-to-pytest-asserts/ |
| مجوز | MIT |
**********************************
codemod-unittest-to-pytest-asserts
**********************************
A `codemod <https://pypi.org/project/codemod/>`_ to automatically refactor
unittest assertions with pytest assertions.
Installation
============
This codemod requires Python 3.8 or newer.
With pip, assuming Python 3.8 or newer is used::
python3 -m pip install codemod-unittest-to-pytest-asserts
With pipx, assuming Python 3.8 exists on the system::
pipx install --python $(which python3.8) codemod-unittest-to-pytest-asserts
Usage
=====
Run the installed command on the Python files or directory of files you want to refactor::
codemod-unittest-to-pytest-asserts some-python-files.py
or::
codemod-unittest-to-pytest-asserts some_directory/
You'll be asked to confirm all changes.
It is recommended to run an autoformatter, like Black, after the
refactoring.
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.0 | codemod |
| >=1.6.2 | astunparse |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl codemod-unittest-to-pytest-asserts-1.2.0:
pip install codemod-unittest-to-pytest-asserts-1.2.0.whl
نصب پکیج tar.gz codemod-unittest-to-pytest-asserts-1.2.0:
pip install codemod-unittest-to-pytest-asserts-1.2.0.tar.gz