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

Method test_exit_code

src/tests/execution_service_test.py:51–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 self.assertFalse(execution_service.is_running(123, DEFAULT_USER))
50
51 def test_exit_code(self):
52 execution_service = self.create_execution_service()
53 execution_id = self._start(execution_service)
54 process = self.get_process(execution_id)
55 process.finish(22)
56
57 self.assertEqual(22, execution_service.get_exit_code(execution_id))
58
59 def test_running_services_when_2_started(self):
60 execution_service = self.create_execution_service()

Callers

nothing calls this directly

Calls 5

_startMethod · 0.95
get_processMethod · 0.95
finishMethod · 0.80
get_exit_codeMethod · 0.45

Tested by

no test coverage detected