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

Function test_search

tests/test_cryptos.py:41–46  ·  view source on GitHub ↗

Verify search() output for representative cryptocurrency queries.

(recorder: Recorder)

Source from the content-addressed store, hash-verified

39
40
41def test_search(recorder: Recorder) -> None:
42 """Verify search() output for representative cryptocurrency queries."""
43 recorder.capture(cryptos.search(summary="bitcoin").iloc[:5])
44 recorder.capture(cryptos.search(index="ETC").iloc[:5])
45 recorder.capture(cryptos.search(cryptocurrency="AAVE").iloc[:5])
46 recorder.capture(cryptos.search(currency="USD").iloc[:5])
47
48
49def 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