Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions faker/providers/bank/el_GR/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,23 @@ class Provider(BankProvider):

bban_format = "#######################"
country_code = "GR"

# Major GR banks (with a head office in Greece)
# Source:
# - https://www.bankofgreece.gr/en/main-tasks/supervision/supervised-institutions
# Last verified: January 2026
banks = (
"Aegean Baltic Bank",
"Alpha Bank",
"Credia Bank",
"Eurobank",
"Optima Bank",
"SNAPPI",
"Vivabank",
"Εθνική Τράπεζα",
"Συνεταιριστική Τράπεζα Θεσσαλίας",
"Συνεταιριστική Τράπεζα Καρδίτσας",
"Συνεταιριστική Τράπεζα Χανίων",
"Τράπεζα Ηπείρου",
"Τράπεζα Πειραιώς",
)
5 changes: 5 additions & 0 deletions tests/providers/test_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ def test_iban(self, faker, num_samples):
class TestElGr:
"""Test el_GR bank provider"""

def test_bank(self, faker, num_samples):
for _ in range(num_samples):
bank = faker.bank()
assert bank in ElGrBankProvider.banks

def test_bban(self, faker, num_samples):
for _ in range(num_samples):
assert re.fullmatch(r"\d{23}", faker.bban())
Expand Down