Improve rest api client / status response

This commit is contained in:
Matthias
2019-11-17 14:40:59 +01:00
parent 841c379797
commit 3aee8d2b2a
3 changed files with 21 additions and 10 deletions

View File

@@ -417,8 +417,8 @@ def test_api_status(botclient, mocker, ticker, fee, markets):
)
rc = client_get(client, f"{BASE_URI}/status")
assert_response(rc, 502)
assert rc.json == {'error': 'Error querying _status: no active trade'}
assert_response(rc, 200)
assert rc.json == []
ftbot.create_trades()
rc = client_get(client, f"{BASE_URI}/status")