MCPcopy Index your code
hub / github.com/bugy/script-server / test_single_variable

Method test_single_variable

src/tests/executor_test.py:796–800  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

794
795class TestBuildEnvVariables(unittest.TestCase):
796 def test_single_variable(self):
797 param = create_parameter_model('name')
798 env_variables = _build_env_variables({'name': 'UserX'}, [param], 123)
799
800 self.assertEqual({'PARAM_NAME': 'UserX', 'EXECUTION_ID': '123'}, env_variables)
801
802 def test_multiple_variables(self):
803 name_param = create_parameter_model('name')

Callers

nothing calls this directly

Calls 2

create_parameter_modelFunction · 0.90
_build_env_variablesFunction · 0.90

Tested by

no test coverage detected