Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable submission of repayment requests #677

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

WIP

495eb87
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

Enable submission of repayment requests #677

WIP
495eb87
Select commit
Loading
Failed to load commit list.
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

See this annotation in the file changed.

@github-actions 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.