Use search method for `piker api` test
parent
ea289540b3
commit
308ceb1772
|
@ -75,7 +75,7 @@ def test_quotes_ticker_not_found(
|
||||||
def test_api_method(nyse_tickers, capfd):
|
def test_api_method(nyse_tickers, capfd):
|
||||||
"""Ensure a low level api method can be called via CLI.
|
"""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()
|
out, err = capfd.readouterr()
|
||||||
quotes_dict = json.loads(out)
|
quotes_dict = json.loads(out)
|
||||||
assert isinstance(quotes_dict, dict)
|
assert isinstance(quotes_dict, dict)
|
||||||
|
|
Loading…
Reference in New Issue