Update failing tests
This commit is contained in:
parent
578da343dc
commit
34951f59d2
@ -235,7 +235,7 @@ def test_calculate_market_change(testdatadir):
|
|||||||
data = load_data(datadir=testdatadir, pairs=pairs, timeframe='5m')
|
data = load_data(datadir=testdatadir, pairs=pairs, timeframe='5m')
|
||||||
result = calculate_market_change(data)
|
result = calculate_market_change(data)
|
||||||
assert isinstance(result, float)
|
assert isinstance(result, float)
|
||||||
assert pytest.approx(result) == 0.00955514
|
assert pytest.approx(result) == 0.01100002
|
||||||
|
|
||||||
|
|
||||||
def test_combine_dataframes_with_mean(testdatadir):
|
def test_combine_dataframes_with_mean(testdatadir):
|
||||||
|
@ -288,7 +288,7 @@ def test_advise_all_indicators(default_conf, testdatadir) -> None:
|
|||||||
data = load_data(testdatadir, '1m', ['UNITTEST/BTC'], timerange=timerange,
|
data = load_data(testdatadir, '1m', ['UNITTEST/BTC'], timerange=timerange,
|
||||||
fill_up_missing=True)
|
fill_up_missing=True)
|
||||||
processed = strategy.advise_all_indicators(data)
|
processed = strategy.advise_all_indicators(data)
|
||||||
assert len(processed['UNITTEST/BTC']) == 102 # partial candle was removed
|
assert len(processed['UNITTEST/BTC']) == 103
|
||||||
|
|
||||||
|
|
||||||
def test_populate_any_indicators(default_conf, testdatadir) -> None:
|
def test_populate_any_indicators(default_conf, testdatadir) -> None:
|
||||||
@ -300,7 +300,7 @@ def test_populate_any_indicators(default_conf, testdatadir) -> None:
|
|||||||
processed = strategy.populate_any_indicators('UNITTEST/BTC', data, '5m')
|
processed = strategy.populate_any_indicators('UNITTEST/BTC', data, '5m')
|
||||||
assert processed == data
|
assert processed == data
|
||||||
assert id(processed) == id(data)
|
assert id(processed) == id(data)
|
||||||
assert len(processed['UNITTEST/BTC']) == 102 # partial candle was removed
|
assert len(processed['UNITTEST/BTC']) == 103
|
||||||
|
|
||||||
|
|
||||||
def test_freqai_not_initialized(default_conf) -> None:
|
def test_freqai_not_initialized(default_conf) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user