MCPcopy Create free account
hub / github.com/kernc/backtesting.py / test_data_missing_columns

Method test_data_missing_columns

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

Source from the content-addressed store, hash-verified

94 self.assertLess(end - start, .3)
95
96 def test_data_missing_columns(self):
97 df = GOOG.copy(deep=False)
98 del df['Open']
99 with self.assertRaises(ValueError):
100 Backtest(df, SmaCross).run()
101
102 def test_data_nan_columns(self):
103 df = GOOG.copy()

Callers

nothing calls this directly

Calls 2

BacktestClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected