Fix random failure if config.json exists
This commit is contained in:
parent
242ac4d8f4
commit
867a3273ce
@ -336,12 +336,17 @@ def test_start_plot_profit(mocker):
|
||||
|
||||
|
||||
def test_start_plot_profit_error(mocker):
|
||||
|
||||
args = [
|
||||
"plot-profit",
|
||||
"--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):
|
||||
start_plot_profit(get_args(args))
|
||||
start_plot_profit(argsp)
|
||||
|
||||
|
||||
def test_plot_profit(default_conf, mocker, testdatadir, caplog):
|
||||
|
Loading…
Reference in New Issue
Block a user