MCPcopy Create free account
hub / github.com/bugy/script-server / parse_env_variables

Function parse_env_variables

src/tests/executor_test.py:17–20  ·  view source on GitHub ↗
(output)

Source from the content-addressed store, hash-verified

15
16
17def parse_env_variables(output):
18 lines = [line for line in output.split('\n') if line and ('=' in line)]
19 variables = {line.split('=', 2)[0]: line.split('=', 2)[1] for line in lines}
20 return variables
21
22
23class TestScriptExecutor(unittest.TestCase):

Calls

no outgoing calls

Tested by

no test coverage detected