gnunet-svn
[Top][All Lists]
Advanced

[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:57:17 +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 e1e2d28  Fix value extraction from parse object
e1e2d28 is described below

commit e1e2d28ec38d67c0ce48394652abbfde856d84f9
Author: MS <ms@taler.net>
AuthorDate: Mon Nov 30 17:57:13 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 6bef0d4..f0b8194 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]["batches"]["batchTransactions"]) == 2)
-    assert(len(entries[1]["batches"]["batchTransactions"]) == 1)
+    assert(len(entries[0]["batches"][0]["batchTransactions"]) == 2)
+    assert(len(entries[1]["batches"][0]["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]["batches"]["batchTransactions"]) == 1)
+    assert(len(entries[0]["batches"][0]["batchTransactions"]) == 1)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]