MCPcopy Index your code
hub / github.com/ray-project/ray / test_load_function

Method test_load_function

python/ray/_common/tests/test_utils.py:185–188  ·  view source on GitHub ↗

Test loading a function from a module.

(self)

Source from the content-addressed store, hash-verified

183 assert path_module is os.path, "Should load os.path module"
184
185 def test_load_function(self):
186 """Test loading a function from a module."""
187 makedirs_func = load_class("os.makedirs")
188 assert makedirs_func is os.makedirs, "Should load os.makedirs function"
189
190 def test_load_standard_library_class(self):
191 """Test loading a standard library class."""

Callers

nothing calls this directly

Calls 1

load_classFunction · 0.90

Tested by

no test coverage detected