fix b4w real-world import

This commit is contained in:
2026-09-12 21:00:26 +02:00
parent e9dcb88da5
commit 500b76b8a8
4 changed files with 40 additions and 6 deletions
+21
View File
@@ -33,6 +33,27 @@ def test_b4w_export_account_iban_to_short():
_ = B4wExportFactory.build(OwnrAcctIBAN="DE123")
def test_b4w_export_other_iban_empty_is_none():
data = B4wExportFactory.build(RmtdAcctIBAN="")
assert data.other_iban is None
def test_b4w_export_other_iban_blank_is_none():
data = B4wExportFactory.build(RmtdAcctIBAN=" ")
assert data.other_iban is None
def test_b4w_export_other_iban_invalid():
with pytest.raises(ValidationError):
_ = B4wExportFactory.build(RmtdAcctIBAN="not an IBAN")
def test_b4w_export_other_iban_repr_round_trip_empty():
data = B4wExportFactory.build(RmtdAcctIBAN="")
data2 = eval(str(data))
assert data == data2
def test_b4w_export_parameters_to_dict():
data = B4wExportFactory.build()
params = data.parameters_to_dict()