diff options
author | MS <ms@taler.net> | 2020-12-14 10:09:52 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2020-12-14 10:09:52 +0100 |
commit | 69cc8359da2e929fd1bdc8113bc82141d0658291 (patch) | |
tree | 218555f5c625a62acf630c4e5d102e51b6494284 | |
parent | 5259e4fe09c41132303ed90a4eb9a6dc3eb2e31d (diff) | |
download | libeufin-69cc8359da2e929fd1bdc8113bc82141d0658291.tar.gz libeufin-69cc8359da2e929fd1bdc8113bc82141d0658291.tar.bz2 libeufin-69cc8359da2e929fd1bdc8113bc82141d0658291.zip |
testing #6657
-rwxr-xr-x | parsing-tests/checks.py | 6 | ||||
m--------- | parsing-tests/samples | 0 |
2 files changed, 6 insertions, 0 deletions
diff --git a/parsing-tests/checks.py b/parsing-tests/checks.py index 1bf23336..537187dc 100755 --- a/parsing-tests/checks.py +++ b/parsing-tests/checks.py @@ -28,6 +28,12 @@ def get_json_from_disk(json_file): with open(json_file_abs) as j: return json.load(j) +def test_dashed_subject(): + parsed = call_parser("./samples/camt53_example_dashed_subject.xml") + entries = parsed["reports"][0]["entries"] + tx = entries[0]["batches"][0]["batchTransactions"][0] + assert tx["details"]["unstructuredRemittanceInformation"] == "subject-with-dashes" + def test_camt53_example3(): parsed = call_parser("./samples/camt53_example3.xml") entries = parsed["reports"][0]["entries"] diff --git a/parsing-tests/samples b/parsing-tests/samples -Subproject 8c25bb4302a0ec1146cf910b024e7afd89e8459 +Subproject 4e36caa0b9557d7446488d7eec7c80e6f1e554a |