From 492868a966e352251dc15d74eaed4b133c8da475 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 17 Nov 2018 13:34:23 +0100 Subject: [PATCH] Seperate different tests within one test clearer --- freqtrade/tests/exchange/test_exchange.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/freqtrade/tests/exchange/test_exchange.py b/freqtrade/tests/exchange/test_exchange.py index 12a8fbcf4..fd4512bd2 100644 --- a/freqtrade/tests/exchange/test_exchange.py +++ b/freqtrade/tests/exchange/test_exchange.py @@ -396,8 +396,9 @@ def test_buy_prod(default_conf, mocker): assert 'info' in order assert order['id'] == order_id assert api_mock.create_order.call_args[0][1] == order_type - order_type = 'limit' + api_mock.create_order.reset_mock() + order_type = 'limit' order = exchange.buy(pair='ETH/BTC', ordertype=order_type, amount=1, rate=200) assert api_mock.create_order.call_args[0][1] == order_type @@ -452,8 +453,8 @@ def test_sell_prod(default_conf, mocker): assert order['id'] == order_id assert api_mock.create_order.call_args[0][1] == order_type - order_type = 'limit' api_mock.create_order.reset_mock() + order_type = 'limit' order = exchange.sell(pair='ETH/BTC', ordertype=order_type, amount=1, rate=200) assert api_mock.create_order.call_args[0][1] == order_type