Re:Show HN: Python Tests That Write Themselves
by progval on Wednesday September 18, 2019 @02:17PM
(#21008310)
It's also useful to check the function doesn't crash.
I use hypothesis to test a DB abstraction, and it often caught bugs in edge cases I didn't consider: timestamps/timezones too large, strings containing null bytes, etc.
These would be caught by the tests generated by hypothesis-auto.
I use hypothesis to test a DB abstraction, and it often caught bugs in edge cases I didn't consider: timestamps/timezones too large, strings containing null bytes, etc.
These would be caught by the tests generated by hypothesis-auto.