summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-31 22:46:23 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-31 22:46:23 +0530
commitb37c98346d407c749a5cd971f798428c42b248c3 (patch)
tree4abbcd3152915ed1c8a4703d7b6892b4d603eb13 /tests
parent3db00d9d73c7fcd88f8450330c01639a6b171df9 (diff)
downloadwallet-core-b37c98346d407c749a5cd971f798428c42b248c3.tar.gz
wallet-core-b37c98346d407c749a5cd971f798428c42b248c3.tar.bz2
wallet-core-b37c98346d407c749a5cd971f798428c42b248c3.zip
use message envelope as documentedv0.7.1-dev.18
Diffstat (limited to 'tests')
-rw-r--r--tests/components/wallet.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/components/wallet.py b/tests/components/wallet.py
index cedae84e1..bfdbd9ba1 100644
--- a/tests/components/wallet.py
+++ b/tests/components/wallet.py
@@ -21,12 +21,9 @@ class Wallet:
print(r)
assert r.returncode == 0
json_r = json.loads(r.stdout)
- if json_r["isError"]:
- print(r)
- assert not json_r["isError"]
- if "result" not in json_r:
- # TODO should there not always be a "result"?
- return None
+ if json_r["type"] != "response" or "result" not in json_r:
+ print(json_r)
+ assert json_r["type"] == "response"
return json_r["result"]
def testing_withdraw(self, amount, exchange_url, bank_url):