disable the backtesting by default
This commit is contained in:
parent
9f7a72a990
commit
c9dcc1e57c
@ -1,6 +1,7 @@
|
|||||||
# pragma pylint: disable=missing-docstring
|
# pragma pylint: disable=missing-docstring
|
||||||
import unittest
|
import unittest
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
import os
|
||||||
import json
|
import json
|
||||||
import arrow
|
import arrow
|
||||||
from pandas import DataFrame
|
from pandas import DataFrame
|
||||||
@ -27,6 +28,7 @@ class TestMain(unittest.TestCase):
|
|||||||
"stoploss": -0.10
|
"stoploss": -0.10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@unittest.skipIf(not os.environ.get('BACKTEST', False), "slow, should be run manually")
|
||||||
def test_backtest(self):
|
def test_backtest(self):
|
||||||
trades = []
|
trades = []
|
||||||
with patch.dict('main._CONF', self.conf):
|
with patch.dict('main._CONF', self.conf):
|
||||||
|
Loading…
Reference in New Issue
Block a user