Merge pull request #2243 from freqtrade/fix/plotting_failure

Fix random failure if config.json exists
This commit is contained in:
hroff-1902 2019-09-08 21:18:37 +03:00 committed by GitHub
commit ceb1f91d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,12 +336,17 @@ def test_start_plot_profit(mocker):
def test_start_plot_profit_error(mocker): def test_start_plot_profit_error(mocker):
args = [ args = [
"plot-profit", "plot-profit",
"--pairs", "ETH/BTC" "--pairs", "ETH/BTC"
] ]
argsp = get_args(args)
# Make sure we use no config. Details: #2241
# not resetting config causes random failures if config.json exists
argsp.config = []
with pytest.raises(OperationalException): with pytest.raises(OperationalException):
start_plot_profit(get_args(args)) start_plot_profit(argsp)
def test_plot_profit(default_conf, mocker, testdatadir, caplog): def test_plot_profit(default_conf, mocker, testdatadir, caplog):