Skip to main content

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)

Source distribution for pytest-codegen 0.0.3
File Size Uploaded
pytest-codegen-0.0.3.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-codegen 0.0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page