[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin-tests] 01/02: abstracting checks
From: |
gnunet |
Subject: |
[libeufin-tests] 01/02: abstracting checks |
Date: |
Mon, 30 Nov 2020 17:23:14 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin-tests.
commit 33bd5be9498f140ca1d9877bba2c133d58da87e5
Author: MS <ms@taler.net>
AuthorDate: Mon Nov 30 17:21:13 2020 +0100
abstracting checks
---
checks.py | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/checks.py b/checks.py
index c7a6840..bc38948 100755
--- a/checks.py
+++ b/checks.py
@@ -34,9 +34,24 @@ def assert_json_equal(json1, json2):
assert len(diff.keys()) == 0
def test_camt53_example1():
+ # This document has the following structure:
+ #
+ # - box #0
+ # -- batch
+ # --- tx
+ # --- tx
+ #
+ # - box #1
+ # -- batch
+ # --- tx
+ #
parsed = call_parser("./samples/camt53_example1.xml")
+ entries = parsed.get("entries")
+ assert(len(entries) == 2)
+ assert(len(entries[0].get("batches")) == 2)
+ assert(len(entries[1].get("batches")) == 1)
+
+@pytest.mark.skip("todo")
def test_camt53_example2():
parsed = call_parser("./samples/camt53_example2.xml")
- expected = get_json_from_disk("./samples/camt53_example2_expected.json")
- assert_json_equal(parsed, expected)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.