Skip to content

Commit

Permalink
🚑 adding remaining property, test and broadening lib version
Browse files Browse the repository at this point in the history
  • Loading branch information
kroncatti authored and yezz123 committed Jan 8, 2024
1 parent c09bcda commit 2ab6ad6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pydantic_extra_types/iban.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ def branch_code(self) -> str:
@property
def bban(self) -> str:
return self.iban.bban

@property
def checksum_digits(self) -> str:
return self.iban.checksum_digits
1 change: 1 addition & 0 deletions tests/test_iban.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_iban_properties(iban, IBANFixture):
assert iban_obj.bank_short_name == iban_obj.iban.bank_short_name
assert iban_obj.branch_code == iban_obj.iban.branch_code
assert iban_obj.bban == iban_obj.iban.bban
assert iban_obj.checksum_digits == iban_obj.iban.checksum_digits


@pytest.mark.parametrize(
Expand Down

0 comments on commit 2ab6ad6

Please sign in to comment.