Verify search() output for representative ETF queries.
(recorder: Recorder)
| 40 | |
| 41 | |
| 42 | def 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 | |
| 55 | def test_select_with_invalid_value_raises() -> None: |