-
-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(random): retry on invalid word generation #1307
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1307 +/- ##
==========================================
- Coverage 99.63% 99.62% -0.01%
==========================================
Files 2160 2160
Lines 240455 240491 +36
Branches 1009 1010 +1
==========================================
+ Hits 239568 239587 +19
- Misses 866 883 +17
Partials 21 21
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm currently unable to test this, but it looks good to me from the sources point of view.
There is however this issue, that I feel would be a better solution. |
I will merge this because @xDivisionByZerox requested it, before moving it to faker.word.random(). |
This PR adds more source methods to the
random.word
method. It also sorts the sources alphabetically for better maintainability.Fixes #129.