Skip to content

Safe numbers provoke unique constraints failure #14

Description

@an0o0nym

Hi,
Thanks a lot for your work on providing this custom provider! Been struggling to make it work with phonenumbers parser in my test suite until I found faker-e164.

Now when I run tests I get the unique constraints failure for telephone number. I figured out that it creates multiple user using the same phone number. Is there only a limited number of phone numbers that may be provoking this? Any way to fix this?

This is how I use it:

    telephone = factory.Faker("safe_e164", region_code="AU")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions