Skip to content

Commit

Permalink
Fix ems tests: add .spot venue token to fqme
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jun 20, 2023
1 parent 62874ee commit 6ae9eca
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/test_ems.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -173,8 +175,11 @@ async def load_bad_fqme():
) 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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6ae9eca

Please sign in to comment.