From 3348283b05a1bea94479cec1ed69c73bed2ef3ce Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 3 Jul 2024 13:36:41 +0200 Subject: [PATCH] Test api with new dex attribute --- tests/rpc/test_rpc_apiserver.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index ffb2408f1..673f98e05 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -2154,6 +2154,7 @@ def test_api_exchanges(botclient): "valid": True, "supported": True, "comment": "", + "dex": False, "trade_modes": [ {"trading_mode": "spot", "margin_mode": ""}, {"trading_mode": "futures", "margin_mode": "isolated"}, @@ -2165,6 +2166,16 @@ def test_api_exchanges(botclient): "name": "mexc", "valid": True, "supported": False, + "dex": False, + "comment": "", + "trade_modes": [{"trading_mode": "spot", "margin_mode": ""}], + } + waves = [x for x in response["exchanges"] if x["name"] == "wavesexchange"][0] + assert waves == { + "name": "wavesexchange", + "valid": True, + "supported": False, + "dex": True, "comment": "", "trade_modes": [{"trading_mode": "spot", "margin_mode": ""}], }