Adjust tests to `.clearing._client.OrderClient` type

rekt_pps
Tyler Goodlet 2023-04-02 20:33:53 -04:00
parent 56cd15fa51
commit 96006b2422
2 changed files with 4 additions and 4 deletions

View File

@ -206,13 +206,13 @@ async def _open_test_pikerd_and_ems(
@pytest.fixture @pytest.fixture
def open_test_pikerd_and_ems( def open_test_pikerd_and_ems(
open_test_pikerd, open_test_pikerd,
fqsn: str = 'xbtusdt.kraken', fqme: str = 'xbtusdt.kraken',
mode: str = 'paper', mode: str = 'paper',
loglevel: str = 'info', loglevel: str = 'info',
): ):
yield partial( yield partial(
_open_test_pikerd_and_ems, _open_test_pikerd_and_ems,
fqsn, fqme,
mode, mode,
loglevel, loglevel,
open_test_pikerd open_test_pikerd

View File

@ -24,7 +24,7 @@ from piker.clearing._messages import (
Status, Status,
) )
from piker.clearing._client import ( from piker.clearing._client import (
OrderBook, OrderClient,
) )
@ -121,7 +121,7 @@ def test_ensure_ems_in_paper_actors(
async def main(): async def main():
# type declares # type declares
book: OrderBook book: OrderClient
trades_stream: tractor.MsgStream trades_stream: tractor.MsgStream
pps: dict[str, list[BrokerdPosition]] pps: dict[str, list[BrokerdPosition]]
accounts: list[str] accounts: list[str]