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.
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 | |
|---|---|---|---|
| pytest-codegen-0.0.3.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_codegen-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
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
|