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

Function test_search

tests/test_currencies.py:44–49  ·  view source on GitHub ↗

Verify search() output for representative currency queries.

(recorder: Recorder)

Source from the content-addressed store, hash-verified

42
43
44def test_search(recorder: Recorder) -> None:
45 """Verify search() output for representative currency queries."""
46 recorder.capture(currencies.search(summary="dollar").iloc[:5])
47 recorder.capture(currencies.search(index="USD").iloc[:5])
48 recorder.capture(currencies.search(base_currency="CAD").iloc[:5])
49 recorder.capture(currencies.search(quote_currency="EUR").iloc[:5])
50
51
52def 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