disable the backtesting by default

This commit is contained in:
Janne Sinivirta 2017-09-25 21:39:43 +03:00
parent 9f7a72a990
commit c9dcc1e57c

View File

@ -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):