codemod-unittest-to-pytest-asserts
A 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.
Metadata
Release files for codemod-unittest-to-pytest-asserts 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codemod-unittest-to-pytest-asserts-1.2.0.tar.gz | 5.3 kB | Without provenance | Details for codemod-unittest-to-pytest-asserts-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codemod_unittest_to_pytest_asserts-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for codemod_unittest_to_pytest_asserts-1.2.0-py3-none-any.whl |
Total release size: 11.2 kB
Release files / codemod-unittest-to-pytest-asserts-1.2.0.tar.gz
| Download URL | codemod-unittest-to-pytest-asserts-1.2.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed19eaeeb765756ffed4f97955f9ff2e68319819f608380bcbbb88907f3f2e95
|
|
BLAKE2b-256 checksum How to use checksums |
f35758fc658672951fb370fc10c964de340280a36e4d2dd07f7d857a4a7456b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / codemod_unittest_to_pytest_asserts-1.2.0-py3-none-any.whl
| Download URL | codemod_unittest_to_pytest_asserts-1.2.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3980ce89c9e1e3c1afbce2b07a84a50fcf15a21d330337fb3610567fc875374d
|
|
BLAKE2b-256 checksum How to use checksums |
c02dfd430816685775f4ba26e5cf1f7c94e530b62de57f3171c3835e2da72d6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for codemod-unittest-to-pytest-asserts 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.