`select( =...)` raises ValueError for values not in show_options().
()
| 49 | |
| 50 | |
| 51 | def test_select_with_invalid_value_raises() -> None: |
| 52 | """`select(<filter>=...)` raises ValueError for values not in show_options().""" |
| 53 | for col in ["currency", "exchange", "mic"]: |
| 54 | with pytest.raises(ValueError, match="not available in the database"): |
| 55 | indices.select(**{col: "__definitely_not_a_real_value__"}) |
| 56 | |
| 57 | |
| 58 | def test_select_mic() -> None: |