From 88f3912b2db036ad914a0286b4385806cb944761 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 9 May 2023 14:42:43 -0400 Subject: [PATCH] test_ems: doc out some remaining suites --- piker/data/_sampling.py | 5 ++++- tests/test_ems.py | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/piker/data/_sampling.py b/piker/data/_sampling.py index 3c769551..c124c95c 100644 --- a/piker/data/_sampling.py +++ b/piker/data/_sampling.py @@ -360,7 +360,10 @@ async def register_with_sampler( if msg == 'broadcast_all': await Sampler.broadcast_all() finally: - if sub_for_broadcasts: + if ( + sub_for_broadcasts + and subs + ): subs.remove(stream) else: # if no shms are passed in we just wait until cancelled diff --git a/tests/test_ems.py b/tests/test_ems.py index 8b8d3600..ec9aefb6 100644 --- a/tests/test_ems.py +++ b/tests/test_ems.py @@ -391,3 +391,18 @@ def test_multi_fill_positions( await match_ppmsgs_on_ems_boot([ppmsg]) run_and_tollerate_cancels(just_check_pp) + + +def test_open_orders_reloaded( + open_test_pikerd: AsyncContextManager, + loglevel: str, + + fills: tuple[dict], + + check_cross_session: bool = False, +): + ... + + +def test_dark_order_clearing(): + ...