gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin-tests] branch master updated: tests runner gone


From: gnunet
Subject: [libeufin-tests] branch master updated: tests runner gone
Date: Tue, 08 Dec 2020 10:06:31 +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 587e664  tests runner gone
587e664 is described below

commit 587e6641c796cb37009369cb44638b96bb5df535
Author: MS <ms@taler.net>
AuthorDate: Tue Dec 8 10:06:29 2020 +0100

    tests runner gone
---
 README    |  3 +--
 bootstrap |  4 ----
 checks.py | 44 --------------------------------------------
 3 files changed, 1 insertion(+), 50 deletions(-)

diff --git a/README b/README
index 7488093..b73cac1 100644
--- a/README
+++ b/README
@@ -1,2 +1 @@
-This repository holds sample CAMT files.  The bootstrap
-script downloads libeufin as submodule.
+This repository holds sample CAMT files.
diff --git a/bootstrap b/bootstrap
deleted file mode 100755
index 81f5179..0000000
--- a/bootstrap
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-git submodule update --init
-git submodule update --remote
diff --git a/checks.py b/checks.py
deleted file mode 100755
index 6830813..0000000
--- a/checks.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env python3
-
-import os
-import sys
-import json
-from deepdiff import DeepDiff
-from subprocess import Popen, PIPE
-
-# return dict with parse-result.
-def call_parser(xml_file):
-    assert os.path.isfile(xml_file)
-    xml_file_abs = os.path.abspath(xml_file)
-    with Popen([
-        "../gradlew",
-        "--console=plain",
-        "-q",
-        "-p",
-        "..",
-        "nexus:run",
-        f"--args=parse-camt {xml_file_abs}"],
-        stdout=PIPE
-    ) as proc:
-        stdout = proc.communicate()[0]
-        assert proc.returncode == 0
-        return json.loads(stdout)
-
-def get_json_from_disk(json_file):
-    json_file_abs = os.path.abspath(json_file)
-    with open(json_file_abs) as j:
-        return json.load(j)
-
-def assert_json_equal(json1, json2):
-    diff = DeepDiff(json1, json2, ignore_order=True, report_repetition=True)
-    assert len(diff.keys()) == 0
-
-def test_camt53_example3():
-    parsed = call_parser("./samples/camt53_example3.xml")
-    entries = parsed["reports"][0]["entries"]
-    # The following checks ensure that each money movement is a singleton.
-    assert(len(entries) == 4)
-    assert(len(entries[0]["batches"][0]["batchTransactions"]) == 1)
-    assert(len(entries[1]["batches"][0]["batchTransactions"]) == 1)
-    assert(len(entries[2]["batches"][0]["batchTransactions"]) == 1)
-    assert(len(entries[3]["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]