From 057086efdb179719ae9ec3953fa60aff026494cd Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 23 May 2020 16:02:15 -0400 Subject: [PATCH] Pass through test file to monitor --- piker/ui/monitor.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/piker/ui/monitor.py b/piker/ui/monitor.py index 7f8502e0..d8f39c2d 100644 --- a/piker/ui/monitor.py +++ b/piker/ui/monitor.py @@ -163,20 +163,23 @@ async def stream_symbol_selection(): async def _async_main( name: str, portal: tractor._portal.Portal, - tickers: List[str], + symbols: List[str], brokermod: ModuleType, loglevel: str = 'info', rate: int = 3, - test: bool = False + test: str = '', ) -> None: '''Launch kivy app + all other related tasks. This is started with cli cmd `piker monitor`. ''' feed = DataFeed(portal, brokermod) - quote_gen, quotes = await feed.open_stream( - tickers, 'stock', rate=rate) + symbols, + 'stock', + rate=rate, + test=test, + ) first_quotes, _ = feed.format_quotes(quotes)