Skip to content
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

Added avoid_int feature #2026

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

benjfield
Copy link

What does this change

I have added an argument called avoid_int to pyint that will generate numbers in the range that are different from avoid_int.

What was wrong

When running tests, it can be useful to have data generated other than a specific value for negative tests. I believe this was not generally possible with faker.

How this fixes it

If avoid_int is not none, pyint will not generate the value specified.

@fcurella
Copy link
Collaborator

This looks like a very specific use case. I'm not convinced it's common enough to be worth the additional complexity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants