Adjust tests to `.clearing._client.OrderClient` type
parent
8efb9ece61
commit
c26dc35308
|
@ -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
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue