Pass `loglevel: str` cli value through to service tests

loglevel_to_testpikerd
Tyler Goodlet 2023-02-21 12:02:26 -05:00
parent d0d1554d74
commit 0b678c97f4
1 changed files with 6 additions and 4 deletions

View File

@ -11,7 +11,6 @@ import tractor
from piker._daemon import ( from piker._daemon import (
find_service, find_service,
check_for_service,
Services, Services,
) )
from piker.data import ( from piker.data import (
@ -75,7 +74,8 @@ async def ensure_service(
def test_ensure_datafeed_actors( def test_ensure_datafeed_actors(
open_test_pikerd: AsyncContextManager open_test_pikerd: AsyncContextManager,
loglevel: str,
) -> None: ) -> None:
''' '''
@ -93,7 +93,7 @@ def test_ensure_datafeed_actors(
open_test_pikerd(), open_test_pikerd(),
open_feed( open_feed(
['xbtusdt.kraken'], ['xbtusdt.kraken'],
loglevel='info', loglevel=loglevel,
) as feed ) as feed
): ):
# halt rt quote streams since we aren't testing them # halt rt quote streams since we aren't testing them
@ -109,7 +109,8 @@ def test_ensure_datafeed_actors(
def test_ensure_ems_in_paper_actors( def test_ensure_ems_in_paper_actors(
open_test_pikerd: AsyncContextManager open_test_pikerd: AsyncContextManager,
loglevel: str,
) -> None: ) -> None:
@ -136,6 +137,7 @@ def test_ensure_ems_in_paper_actors(
open_ems( open_ems(
'xbtusdt.kraken', 'xbtusdt.kraken',
mode='paper', mode='paper',
loglevel=loglevel,
) as ( ) as (
book, book,
trades_stream, trades_stream,