MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / setup_test_env

Function setup_test_env

tests/test_utils.py:35–38  ·  view source on GitHub ↗

Set up test environment with local inference

()

Source from the content-addressed store, hash-verified

33 raise RuntimeError(f"Could not find free port in range {start_port}-{start_port + max_tries}")
34
35def setup_test_env():
36 """Set up test environment with local inference"""
37 os.environ["OPTILLM_API_KEY"] = "optillm"
38 return TEST_MODEL
39
40def get_test_client(base_url: str = DEFAULT_BASE_URL) -> OpenAI:
41 """Get OpenAI client configured for local optillm"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected