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