build 041: remove legacy websocket quote parsing
This commit is contained in:
@@ -248,13 +248,6 @@ def test_run_websocket_uses_canonical_quote_adapter(
|
||||
monkeypatch.setattr(runner_module, "ExchangeWebSocketClient", Client)
|
||||
monkeypatch.setattr(runner_module, "DzengiWebSocketQuoteAdapter", Adapter)
|
||||
monkeypatch.setattr(runner_module, "MarketPriceCache", Cache)
|
||||
monkeypatch.setattr(
|
||||
MarketDataRunner,
|
||||
"_extract_best_price",
|
||||
lambda *args, **kwargs: (_ for _ in ()).throw(
|
||||
AssertionError("Legacy parser must not be called.")
|
||||
),
|
||||
)
|
||||
|
||||
asyncio.run(
|
||||
MarketDataRunner._run_websocket(
|
||||
|
||||
@@ -380,13 +380,6 @@ def test_start_market_stream_maps_message_to_quote(
|
||||
monkeypatch.setattr(stream_module, "ExchangeWebSocketClient", Client)
|
||||
monkeypatch.setattr(stream_module, "DzengiWebSocketQuoteAdapter", Adapter)
|
||||
monkeypatch.setattr(stream_module, "MarketPriceCache", Cache)
|
||||
monkeypatch.setattr(
|
||||
stream_module,
|
||||
"_extract_market_event",
|
||||
lambda payload: (_ for _ in ()).throw(
|
||||
AssertionError("Legacy parser must not be called.")
|
||||
),
|
||||
)
|
||||
monkeypatch.setattr(stream_module.asyncio, "sleep", _raise_stop_stream)
|
||||
|
||||
with pytest.raises(StopStream):
|
||||
|
||||
Reference in New Issue
Block a user