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 passport provider for ru_RU language #2066

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

Conversation

Abdujabbar
Copy link

What does this change

Added new passport provider for ru_RU language

What was wrong

It looks like based on an issue #2061 for passport_owners we need to return first surname and then given_name

How this fixes it

I created a new provider class in the path: faker/providers/passport/ru_RU/init.py and overloaded the function passport_owner



class Provider(PassportProvider):
def passport_owner(self, gender: str = "M") -> Tuple[str, str]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use faker.typing.SexLiteral as type for the gender argument.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, let I will fix it!

Thanks for feedback.

Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test for the new provider?

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.

2 participants