MCPcopy
hub / github.com/ray-project/ray / test_validate_node_labels

Function test_validate_node_labels

python/ray/tests/test_label_utils.py:300–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298
299
300def test_validate_node_labels():
301 # Custom label starts with ray.io prefix
302 labels_dict = {"ray.io/accelerator-type": "A100"}
303 with pytest.raises(ValueError) as e:
304 validate_node_labels(labels_dict)
305 assert "This is reserved for Ray defined labels." in str(e)
306
307
308@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

validate_node_labelsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…