MCPcopy
hub / github.com/JerBouma/FinanceDatabase / test_search

Function test_search

tests/test_etfs.py:42–52  ·  view source on GitHub ↗

Verify search() output for representative ETF queries.

(recorder: Recorder)

Source from the content-addressed store, hash-verified

40
41
42def test_search(recorder: Recorder) -> None:
43 """Verify search() output for representative ETF queries."""
44 recorder.capture(etfs.search(summary="Apple").iloc[:5])
45 recorder.capture(etfs.search(index="VOO").iloc[:5])
46 recorder.capture(etfs.search(category="Utilities").iloc[:5])
47 recorder.capture(etfs.search(category_group="Materials").iloc[:5])
48 recorder.capture(etfs.search(family="ASYMshares").iloc[:5])
49 recorder.capture(etfs.search(exchange="PCX").iloc[:5])
50 recorder.capture(
51 etfs.search(summary="North America", category="Financials").iloc[:5]
52 )
53
54
55def test_select_with_invalid_value_raises() -> None:

Callers

nothing calls this directly

Calls 2

captureMethod · 0.80
searchMethod · 0.80

Tested by

no test coverage detected