aboutsummaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py23
1 files changed, 0 insertions, 23 deletions
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))