From db65f0a20669a81cb7db4425d7d044b8ff49952a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 13 Aug 2020 00:41:53 +0530 Subject: remove old tests, superseded by the JS-based harness --- tests/__init__.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 tests/__init__.py (limited to 'tests/__init__.py') diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index 333953b9d..000000000 --- a/tests/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -import json - -from taler.util.amount import Amount - - -def check_single_balance( - balances, - available, - pending_in=Amount.parse("TESTKUDOS:0"), - pending_out=Amount.parse("TESTKUDOS:0"), -): - assert len(balances) == 1 - assert Amount.parse(balances[0]["available"]) == available - assert Amount.parse(balances[0]["pendingIncoming"]) == pending_in - assert Amount.parse(balances[0]["pendingOutgoing"]) == pending_out - - -def json_to_amount(d): - return Amount(d["currency"], d["value"], d["fraction"]) - - -def print_json(obj): - print(json.dumps(obj, indent=2)) -- cgit v1.2.3