7 lines
312 B
Python
7 lines
312 B
Python
def test_adapters_basic_mapping():
|
|
from bexproof.adapters import BrokerGatewayAdapter, ExchangeGatewayAdapter
|
|
b = BrokerGatewayAdapter()
|
|
e = ExchangeGatewayAdapter()
|
|
assert isinstance(b.adapt_order({"order_id": "ORD1"}), dict)
|
|
assert isinstance(e.adapt_execution({"order_id": "ORD1"}), dict)
|