From a4d16ec6abccf5502e26b525992df765af41c014 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 20 Jun 2023 12:38:39 -0400 Subject: [PATCH] Fix ems tests: add `.spot` venue token to fqme --- tests/test_ems.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/test_ems.py b/tests/test_ems.py index f9c010f0..c2f5d7a8 100644 --- a/tests/test_ems.py +++ b/tests/test_ems.py @@ -164,7 +164,9 @@ def test_ems_err_on_bad_broker( async def load_bad_fqme(): try: async with ( - open_test_pikerd() as (_, _, _, _), + open_test_pikerd( + debug_mode=False, + ) as (_, _, _, _), open_ems( 'doggycoin.doggy', @@ -173,8 +175,11 @@ def test_ems_err_on_bad_broker( ) as _ ): pytest.fail('EMS is working on non-broker!?') - except ModuleNotFoundError: - pass + + # NOTE: emsd should error on the actor's enabled modules + # import phase, when looking for a backend named `doggy`. + except tractor.RemoteActorError as re: + assert re.type == ModuleNotFoundError run_and_tollerate_cancels(load_bad_fqme) @@ -241,8 +246,9 @@ async def submit_and_check( ''' broker: str = 'kraken' + venue: str = 'spot' mkt_key: str = 'xbtusdt' - fqme: str = f'{mkt_key}.{broker}' + fqme: str = f'{mkt_key}.{venue}.{broker}' startup_pps: dict[ tuple[str, str], # brokername, acctid