pytest-codegen
Pytest-codgen will statically analyze your code to create pytest function stubs.
Built with redbaron, typer and jinja2.
Goal
First working version
Future Goals
- Create templates for tests
- More customization
Disclaimer
This tool is currently in pre-alpha/experimental phase. Usable version will be ^0.1.x
Installation
pip install pytest-codegen
Usage
Check the supported commands with
pytest-codegen --help
or if you are lazy like me
ptc --help
Suggestions & Contribution
Every suggestion and contribution is welcome!
Set everything up with poetry and you are good to go :)
pip install poetry
poetry install
Ressources
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for pytest-codegen 0.0.3
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 |
|---|---|---|---|---|
| pytest-codegen-0.0.3.tar.gz | 4.4 kB | Without provenance | Details for pytest-codegen-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_codegen-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for pytest_codegen-0.0.3-py3-none-any.whl |
Total release size: 9.8 kB
Release files / pytest-codegen-0.0.3.tar.gz
| Download URL | pytest-codegen-0.0.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2673369bda96a075647a5ab0dc3bee7d1555d48f43336bc280a49cd9afe55d21
|
|
BLAKE2b-256 checksum How to use checksums |
0137a8cc7d768f983bf0bbf0e6e0d1d5ae9dae43fbccf03105ec19d06fb07dab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.1 Windows/10
|
Release files / pytest_codegen-0.0.3-py3-none-any.whl
| Download URL | pytest_codegen-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2a76ce16617b3c4aa9d96399b87d8604db97ca789bd931897c73e7ada1fd6bc
|
|
BLAKE2b-256 checksum How to use checksums |
7bf5fbbdff1933b76871dda43000606445cfe20a6fd760b3a7de93e710419356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.1 Windows/10
|
Security for pytest-codegen 0.0.3
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.