Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saleh-mir committed Sep 8, 2024
1 parent 141b3f3 commit ee2dd54
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions jesse/research/backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ def backtest(
data_routes: List[Dict[str, str]],
candles: dict,
warmup_candles: dict = None,
generate_charts: bool = False,
generate_tradingview: bool = False,
generate_quantstats: bool = False,
generate_hyperparameters: bool = False,
Expand Down Expand Up @@ -59,7 +58,6 @@ def backtest(
warmup_candles,
run_silently=True,
hyperparameters=hyperparameters,
generate_charts=generate_charts,
generate_tradingview=generate_tradingview,
generate_quantstats=generate_quantstats,
generate_csv=generate_csv,
Expand All @@ -80,7 +78,6 @@ def _isolated_backtest(
warmup_candles: dict = None,
run_silently: bool = True,
hyperparameters: dict = None,
generate_charts: bool = False,
generate_tradingview: bool = False,
generate_quantstats: bool = False,
generate_csv: bool = False,
Expand Down Expand Up @@ -147,7 +144,6 @@ def _isolated_backtest(
trading_candles_dict,
run_silently,
hyperparameters=hyperparameters,
generate_charts=generate_charts,
generate_tradingview=generate_tradingview,
generate_quantstats=generate_quantstats,
generate_csv=generate_csv,
Expand All @@ -169,8 +165,6 @@ def _isolated_backtest(
else:
result['metrics'] = backtest_result['metrics']

if generate_charts:
result['charts'] = backtest_result['charts']
if generate_tradingview:
result['tradingview'] = backtest_result['tradingview']
if generate_quantstats:
Expand Down
2 changes: 0 additions & 2 deletions tests/test_isolated_backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ def test_can_pass_strategy_as_string_in_futures_exchange():

# result must have None values because the strategy makes no decisions
assert result['metrics'] == {'net_profit_percentage': 0, 'total': 0, 'win_rate': 0}
# assert result['charts'] is None
# assert result['logs'] is None


def test_can_pass_strategy_as_class_in_a_futures_exchange():
Expand Down

0 comments on commit ee2dd54

Please sign in to comment.