Merge pull request #5623 from froggleston/rest_sysinfo

Add CPU,RAM sysinfo support to the REST API to help with bot system m…
This commit is contained in:
Matthias
2021-10-09 15:17:21 +02:00
committed by GitHub
6 changed files with 38 additions and 1 deletions

View File

@@ -1271,6 +1271,16 @@ def test_list_available_pairs(botclient):
assert len(rc.json()['pair_interval']) == 1
def test_sysinfo(botclient):
ftbot, client = botclient
rc = client_get(client, f"{BASE_URI}/sysinfo")
assert_response(rc)
result = rc.json()
assert 'cpu_pct' in result
assert 'ram_pct' in result
def test_api_backtesting(botclient, mocker, fee, caplog):
ftbot, client = botclient
mocker.patch('freqtrade.exchange.Exchange.get_fee', fee)