MCPcopy Create free account
hub / github.com/cdgriffith/Box / BadIndex

Class BadIndex

test/test_box_list.py:751–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749@pytest.mark.parametrize("comments", [False, True])
750def test_invalid_index_does_not_change_items_or_comments(operation, comments):
751 class BadIndex:
752 def __index__(self):
753 raise ValueError("invalid index")
754
755 values = BoxList(["a", "b", "c"])
756 if comments:

Calls

no outgoing calls