HypothesisWorks / hypothesis

Hypothesis is a powerful, flexible, and easy to use library for property-based testing.
https://hypothesis.works
Other
7.53k stars 586 forks source link

Interest in a phone number strategy? #4027

Closed techdragon closed 3 months ago

techdragon commented 3 months ago

I've had to write a phone number strategy and since its wound up being a very general purpose strategy for global phone numbers, based on the regex data in https://github.com/daviddrysdale/python-phonenumbers and the regex strategy... It felt like it might be a worthwhile addition to the library assuming that the addition of another optional dependency wasn't considered a problem.

Zac-HD commented 3 months ago

I think that phone numbers are probably too niche a need to put in Hypothesis itself at the moment, but I'd love to link to an extension package from our docs 😃