Python UT Generator

This tools generate automatically Python pytest Unit test code. This project uses ast module to generate. Easy to make coverage test. And Easy to customize test code.

Feature

  • Generate unit test python file in tests package.

  • Generate pytest test function from each function.

  • Generate mock patch syntax code.

  • Generate argument syntax code to call.

  • If function has return value, create assert return.

The User Guide

Indices and tables