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

Function test_select_with_invalid_value_raises

tests/test_indices.py:51–55  ·  view source on GitHub ↗

`select( =...)` raises ValueError for values not in show_options().

()

Source from the content-addressed store, hash-verified

49
50
51def 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
58def test_select_mic() -> None:

Callers

nothing calls this directly

Calls 1

selectMethod · 0.45

Tested by

no test coverage detected