diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-31 22:46:23 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-31 22:46:23 +0530 |
commit | b37c98346d407c749a5cd971f798428c42b248c3 (patch) | |
tree | 4abbcd3152915ed1c8a4703d7b6892b4d603eb13 /tests/components | |
parent | 3db00d9d73c7fcd88f8450330c01639a6b171df9 (diff) | |
download | wallet-core-b37c98346d407c749a5cd971f798428c42b248c3.tar.xz |
use message envelope as documentedv0.7.1-dev.18
Diffstat (limited to 'tests/components')
-rw-r--r-- | tests/components/wallet.py | 9 |
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): |