MCPcopy Create free account
hub / github.com/AI45Lab/Code / step

Function step

sdk/python/tests/real_config_env_sdk.py:21–32  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

19
20
21def step(name, fn):
22 print(f"[python-sdk-real] {name} ... ", end="", flush=True)
23 started = time.time()
24 try:
25 value = fn()
26 elapsed_ms = int((time.time() - started) * 1000)
27 print(f"ok ({elapsed_ms}ms)", flush=True)
28 return value
29 except Exception:
30 elapsed_ms = int((time.time() - started) * 1000)
31 print(f"failed ({elapsed_ms}ms)", flush=True)
32 raise
33
34
35config_file = os.environ.get("A3S_CONFIG_FILE")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected