From ce3c5b32f90e6ce5d06a77d1b9c16ccfb8d4bec8 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 16 Nov 2021 07:04:56 +0100 Subject: [PATCH] Fix test leakage in ccxt_compat --- tests/exchange/test_ccxt_compat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/exchange/test_ccxt_compat.py b/tests/exchange/test_ccxt_compat.py index 59f144bab..ea0dc0fa4 100644 --- a/tests/exchange/test_ccxt_compat.py +++ b/tests/exchange/test_ccxt_compat.py @@ -5,6 +5,7 @@ However, these tests should give a good idea to determine if a new exchange is suitable to run with freqtrade. """ +from copy import deepcopy from datetime import datetime, timedelta, timezone from pathlib import Path @@ -87,6 +88,7 @@ def exchange_futures(request, exchange_conf, class_mocker): if not EXCHANGES[request.param].get('futures') is True: yield None, request.param else: + exchange_conf = deepcopy(exchange_conf) exchange_conf['exchange']['name'] = request.param exchange_conf['trading_mode'] = 'futures' exchange_conf['collateral'] = 'cross'