MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / call

Function call

tests/harness/native_support.py:14–22  ·  view source on GitHub ↗
(*args, env=None, success=True)

Source from the content-addressed store, hash-verified

12
13
14def call(*args, env=None, success=True):
15 process_env = dict(os.environ, **(env or {}))
16 process_env.pop('ATOMIC_RPC', None)
17 process_env.pop('ATOMIC_DAEMON_SOCKET', None)
18 result = subprocess.run([BINARY, *args], env=process_env,
19 stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=60)
20 if success and result.returncode:
21 raise AssertionError((args, result.returncode, result.stdout.decode(), result.stderr.decode()))
22 return result
23
24
25def data(*args):

Callers 6

new_intentFunction · 0.90
complete_intentFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
dataFunction · 0.70
recordFunction · 0.70

Calls 2

runMethod · 0.45
decodeMethod · 0.45

Tested by 4

new_intentFunction · 0.72
complete_intentFunction · 0.72
mainFunction · 0.72
mainFunction · 0.72