We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b49e0a commit 70280a2Copy full SHA for 70280a2
backtesting/test/_test.py
@@ -647,6 +647,8 @@ def test_file_size(self):
647
def test_params(self):
648
bt = Backtest(GOOG.iloc[:100], SmaCross)
649
bt.run()
650
+ fbt = FractionalBacktest(GOOG.iloc[:100], SmaCross, fractional_unit=1/1e6)
651
+ fbt.run()
652
with _tempfile() as f:
653
for p in dict(plot_volume=False, # noqa: C408
654
plot_equity=False,
@@ -662,6 +664,7 @@ def test_params(self):
662
664
show_legend=False).items():
663
665
with self.subTest(param=p[0]):
666
bt.plot(**dict([p]), filename=f, open_browser=False)
667
+ fbt.plot(**dict([p]), filename=f, open_browser=False)
668
669
def test_hide_legend(self):
670
0 commit comments