disable the backtesting by default

pull/29/head
Janne Sinivirta 9 years ago
parent 9f7a72a990
commit c9dcc1e57c

@ -1,6 +1,7 @@
# pragma pylint: disable=missing-docstring
import unittest
from unittest.mock import patch
import os
import json
import arrow
from pandas import DataFrame
@ -27,6 +28,7 @@ class TestMain(unittest.TestCase):
"stoploss": -0.10
}
@unittest.skipIf(not os.environ.get('BACKTEST', False), "slow, should be run manually")
def test_backtest(self):
trades = []
with patch.dict('main._CONF', self.conf):

Loading…
Cancel
Save