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
2 changes: 1 addition & 1 deletion faker/providers/bank/en_IE/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
class Provider(BankProvider):
"""Implement bank provider for ``en_IE`` locale."""

bban_format = "#######################"
bban_format = "????##############"
country_code = "IE"
4 changes: 2 additions & 2 deletions tests/providers/test_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ class TestEnIe:

def test_bban(self, faker, num_samples):
for _ in range(num_samples):
assert re.fullmatch(r"\d{23}", faker.bban())
assert re.fullmatch(r"[A-Z]{4}\d{14}", faker.bban())

def test_iban(self, faker, num_samples):
for _ in range(num_samples):
iban = faker.iban()
assert is_valid_iban(iban)
assert iban[:2] == EnIeBankProvider.country_code
assert re.fullmatch(r"\d{2}\d{23}", iban[2:])
assert re.fullmatch(r"\d{2}[A-Z]{4}\d{14}", iban[2:])


class TestEnIn:
Expand Down