Merge pull request #2540 from freqtrade/rpc/fixes

Improve rest api client / status response
This commit is contained in:
hroff-1902
2019-11-20 22:18:51 +03:00
committed by GitHub
3 changed files with 58 additions and 46 deletions

View File

@@ -429,8 +429,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")