Beispiel #1
0
def test_rpc_health(mocker, default_conf) -> None:
    mocker.patch('freqtrade.rpc.telegram.Telegram', MagicMock())

    freqtradebot = get_patched_freqtradebot(mocker, default_conf)
    rpc = RPC(freqtradebot)
    result = rpc._health()
    assert result['last_process'] == '1970-01-01 00:00:00+00:00'
    assert result['last_process_ts'] == 0
Beispiel #2
0
def health(rpc: RPC = Depends(get_rpc)):
    return rpc._health()