[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin-tests] branch master updated: Fix value extraction from parse
From: |
gnunet |
Subject: |
[libeufin-tests] branch master updated: Fix value extraction from parse object |
Date: |
Mon, 30 Nov 2020 17:53:23 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin-tests.
The following commit(s) were added to refs/heads/master by this push:
new c8f1058 Fix value extraction from parse object
c8f1058 is described below
commit c8f1058c9d7bd93aa231b894ac4ae6d35c426d8f
Author: MS <ms@taler.net>
AuthorDate: Mon Nov 30 17:53:18 2020 +0100
Fix value extraction from parse object
---
checks.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks.py b/checks.py
index d9ae759..6bef0d4 100755
--- a/checks.py
+++ b/checks.py
@@ -49,8 +49,8 @@ def test_camt53_example1():
entries = parsed["reports"][0]["entries"]
assert(len(entries) == 2)
- assert(len(entries[0].get("batches")) == 2)
- assert(len(entries[1].get("batches")) == 1)
+ assert(len(entries[0]["batches"]["batchTransactions"]) == 2)
+ assert(len(entries[1]["batches"]["batchTransactions"]) == 1)
def test_camt53_example2():
#
@@ -62,4 +62,4 @@ def test_camt53_example2():
parsed = call_parser("./samples/camt53_example2.xml")
entries = parsed["reports"][0]["entries"]
assert(len(entries) == 1)
- assert(len(entries[0].get("batches")) == 1)
+ assert(len(entries[0]["batches"]["batchTransactions"]) == 1)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libeufin-tests] branch master updated: Fix value extraction from parse object,
gnunet <=