From c9dcc1e57cecaa05bc29bbe7336f1e3c1b61e870 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Mon, 25 Sep 2017 21:39:43 +0300 Subject: [PATCH] disable the backtesting by default --- test/test_backtesting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_backtesting.py b/test/test_backtesting.py index 8c01f12b6..8d9bc36ab 100644 --- a/test/test_backtesting.py +++ b/test/test_backtesting.py @@ -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):