pytest-santa

Infers types and generates test data from the respective type with Monkeytype and Hypothesis.

View the Project on GitHub inTestiGator/pytest-santa

pytest-santa

Build Status codecov

pytest-santa is a plugin that collects function argument types using MonkeyType and then generates test data by Hypothesis.

Commands

Monkeytype

To create traceback database with monkeytype first you need to be in the example directory by using: cd example

Then run the following:

pipenv run monkeytype run termfrequency/runtermfreq.py inputs/input.txt

Optional commands to apply the types to the code:

pipenv run monkeytype stub termfrequency.tf_objectoriented
pipenv run monkeytype apply termfrequency.tf_objectoriented

To learn more about MonkeyType please go to MonkeyType via this link.