MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / run

Method run

tools/shell/test/conftest.py:122–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 return stdout, stderr
121
122 def run(self):
123 statements = self.get_statements()
124 command = self.get_command(statements)
125 input_data = self.get_input_data(statements)
126 output_pipe = self.get_output_pipe()
127
128 my_env = os.environ.copy()
129 for key, val in self.environment.items():
130 my_env[key] = val
131
132 res = subprocess.run(
133 command,
134 input=input_data,
135 stdout=output_pipe,
136 stderr=subprocess.PIPE,
137 env=my_env,
138 check=False,
139 )
140
141 stdout, stderr = self.get_output_data(res)
142 return TestResult(stdout, stderr, res.returncode)
143
144 def start(self) -> None:
145 command = " ".join(self.arguments)

Callers 15

test_database_pathFunction · 0.95
test_basicFunction · 0.45
test_rangeFunction · 0.45
test_nested_typesFunction · 0.45
test_invalid_castFunction · 0.45
test_multilineFunction · 0.45
test_row_truncationFunction · 0.45
test_column_truncationFunction · 0.45

Calls 7

get_statementsMethod · 0.95
get_commandMethod · 0.95
get_input_dataMethod · 0.95
get_output_pipeMethod · 0.95
get_output_dataMethod · 0.95
TestResultClass · 0.85
copyMethod · 0.45

Tested by

no test coverage detected