Skip to content

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

License

Notifications You must be signed in to change notification settings

inTestiGator/pytest-santa

Repository files navigation

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

  • If needed, install and upgrade the pipenv command: pip install pipenv --user
  • Install the development dependencies pipenv command: pipenv install --dev
  • To run test for the src: pipenv run pytest tests
  • To run test for the example: pipenv run pytest example/tests

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.

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages