Skip to main content

Automatically create pytest test signatures

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-codegen-0.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_codegen-0.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file pytest-codegen-0.0.3.tar.gz.

File metadata

  • Download URL: pytest-codegen-0.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.1 Windows/10

File hashes

Hashes for pytest-codegen-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2673369bda96a075647a5ab0dc3bee7d1555d48f43336bc280a49cd9afe55d21
MD5 17e140c9ac8882730d8c93adf4680816
BLAKE2b-256 0137a8cc7d768f983bf0bbf0e6e0d1d5ae9dae43fbccf03105ec19d06fb07dab

See more details on using hashes here.

File details

Details for the file pytest_codegen-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pytest_codegen-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.8.1 Windows/10

File hashes

Hashes for pytest_codegen-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2a76ce16617b3c4aa9d96399b87d8604db97ca789bd931897c73e7ada1fd6bc
MD5 c6fe5880443f2b5a73d60b9cce8bd96f
BLAKE2b-256 7bf5fbbdff1933b76871dda43000606445cfe20a6fd760b3a7de93e710419356

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page