Skip to content

Add major Swiss banks to de_CH bank provider#2337

Merged
fcurella merged 1 commit intojoke2k:masterfrom
raphael-s:add-de-ch-banks
Mar 13, 2026
Merged

Add major Swiss banks to de_CH bank provider#2337
fcurella merged 1 commit intojoke2k:masterfrom
raphael-s:add-de-ch-banks

Conversation

@raphael-s
Copy link
Contributor

What does this change

Added a tuple of 12 major Swiss banks to the de_CH bank provider. Containing major banks as listed by Wikipedia

What was wrong

Calling Faker("de_CH").bank() raised an AttributeError because Faker is missing that specific dataset for the given locale.

How this fixes it

Added the missing tuple to the de_CH locale so Faker can provide a bank name when running in de_CH locale.
Also added an additional test to check for the new tuple of banks.

Checklist

  • I have read the documentation about CONTRIBUTING
  • I have read the documentation about Coding style
  • I have run make lint

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.

Thank you!

@fcurella fcurella merged commit 4a3341a into joke2k:master Mar 13, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants