MCPcopy Index your code
hub / github.com/kernc/backtesting.py / test_data_invalid

Method test_data_invalid

backtesting/test/_test.py:124–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 Backtest(df, S).run()
123
124 def test_data_invalid(self):
125 with self.assertRaises(TypeError):
126 Backtest(GOOG.index, SmaCross).run()
127 with self.assertRaises(ValueError):
128 Backtest(GOOG.iloc[:0], SmaCross).run()
129
130 def test_assertions(self):
131 class Assertive(Strategy):

Callers

nothing calls this directly

Calls 2

BacktestClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected