aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-12-14 10:09:52 +0100
committerMS <ms@taler.net>2020-12-14 10:09:52 +0100
commit69cc8359da2e929fd1bdc8113bc82141d0658291 (patch)
tree218555f5c625a62acf630c4e5d102e51b6494284
parent5259e4fe09c41132303ed90a4eb9a6dc3eb2e31d (diff)
downloadlibeufin-69cc8359da2e929fd1bdc8113bc82141d0658291.tar.gz
libeufin-69cc8359da2e929fd1bdc8113bc82141d0658291.tar.bz2
libeufin-69cc8359da2e929fd1bdc8113bc82141d0658291.zip
testing #6657
-rwxr-xr-xparsing-tests/checks.py6
m---------parsing-tests/samples0
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