hypothesis.extra.ghostwriter module can write your test functions for you too!The idea is to provide an easy way to start property-based testing, and a seamless transition to more complex test code - because ghostwritten tests are source code that you could have written for yourself.
So just pick a function you’d like tested, and feed it to one of the functions below or our command-line interface hypothesis write
-h! They follow imports, use but do not require type annotations, and generally do their best to write you a useful test.https://hypothesis.readthedocs.io/en/latest/ghostwriter.html