Enable submission of repayment requests #677
Draft
GitHub Actions / JUnit Test Report
failed
May 28, 2024 in 0s
1253 tests run, 1251 passed, 1 skipped, 1 failed.
Annotations
Check failure on line 1 in TestReturnNonAttributable
github-actions / JUnit Test Report
TestReturnNonAttributable.test_generate_sepa_xml
sepaxml.validation.ValidationError: The output SEPA file contains validation errors. This is likely due to an illegal value in one of your input fields.
Raw output
../venv/lib/python3.11/site-packages/sepaxml/validation.py:12: in try_valid_xml
my_schema.validate(xmlout.decode())
../venv/lib/python3.11/site-packages/xmlschema/validators/schemas.py:1702: in validate
raise error
../venv/lib/python3.11/site-packages/xmlschema/validators/simple_types.py:1389: in iter_decode
self.patterns(obj)
../venv/lib/python3.11/site-packages/xmlschema/validators/facets.py:729: in __call__
raise XMLSchemaValidationError(self, text, reason)
E xmlschema.validators.exceptions.XMLSchemaValidationError: failed validating 'WIGTGB1BVW2' with XsdPatternFacets(['[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}']):
E
E Reason: value doesn't match any pattern of ['[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}']
E
E Schema component:
E
E <xs:pattern xmlns:xs="http://www.w3.org/2001/XMLSchema" value="[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}" />
E
E Instance type: <class 'xml.etree.ElementTree.Element'>
E
E Instance:
E
E <BIC xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03">WIGTGB1BVW2</BIC>
E
E Path: /Document/CstmrCdtTrfInitn/PmtInf[1]/DbtrAgt/FinInstnId/BIC
The above exception was the direct cause of the following exception:
tests/lib/test_finance.py:724: in test_generate_sepa_xml
generate_activities_return_sepaxml(get_activities_to_return(session))
pycroft/lib/finance/retransfer.py:48: in generate_activities_return_sepaxml
return sepa.export()
../venv/lib/python3.11/site-packages/sepaxml/shared.py:99: in export
try_valid_xml(out, self.schema)
../venv/lib/python3.11/site-packages/sepaxml/validation.py:15: in try_valid_xml
raise ValidationError(
E sepaxml.validation.ValidationError: The output SEPA file contains validation errors. This is likely due to an illegal value in one of your input fields.
Loading