Skip to content

Commit

Permalink
fixed lint issues kernc#382
Browse files Browse the repository at this point in the history
  • Loading branch information
zlpatel committed Jun 16, 2021
1 parent 15b3ff7 commit 5697a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backtesting/test/_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 5697a66

Please sign in to comment.