Use search method for `piker api` test

kivy_mainline_and_py3.8
Tyler Goodlet 2019-02-10 17:28:43 -05:00
parent ea289540b3
commit 308ceb1772
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def test_quotes_ticker_not_found(
def test_api_method(nyse_tickers, capfd):
"""Ensure a low level api method can be called via CLI.
"""
run(f"piker api quotes symbols={','.join(nyse_tickers)}")
run(f"piker api search prefix='WEED'")
out, err = capfd.readouterr()
quotes_dict = json.loads(out)
assert isinstance(quotes_dict, dict)