diff --git a/backtesting/test/_test.py b/backtesting/test/_test.py index 82ce1acf..1ca822cf 100644 --- a/backtesting/test/_test.py +++ b/backtesting/test/_test.py @@ -775,7 +775,7 @@ def test_indicator_legends(self): class S(Strategy): def init(self): self.I(lambda: (SMA(self.data.Close, 5), SMA(self.data.Close, 10)), overlay=False, - name='Simple Moving Averages', scatter=False, legends=['SMA 5','SMA 10']) + name='Simple Moving Averages', scatter=False, legends=['SMA 5', 'SMA 10']) def next(self): pass @@ -789,6 +789,7 @@ def next(self): # Give browser time to open before tempfile is removed time.sleep(1) + class TestLib(TestCase): def test_barssince(self): self.assertEqual(barssince(np.r_[1, 0, 0]), 2)