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

Method setUp

src/tests/execution_logging_test.py:591–601  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

589 self.assertEqual(14, entry.exit_code)
590
591 def setUp(self):
592 test_utils.setup()
593
594 executor._process_creator = _MockProcessWrapper
595
596 authorizer = Authorizer([], [], [], [], EmptyGroupProvider())
597 self.logging_service = ExecutionLoggingService(test_utils.temp_folder, LogNameCreator(), authorizer)
598 self.executor_service = ExecutionService(AnyUserAuthorizer(), _IdGeneratorMock(), test_utils.env_variables)
599
600 self.controller = ExecutionLoggingController(self.executor_service, self.logging_service)
601 self.controller.start()
602
603 def tearDown(self):
604 test_utils.cleanup()

Callers

nothing calls this directly

Calls 9

AuthorizerClass · 0.90
EmptyGroupProviderClass · 0.90
LogNameCreatorClass · 0.90
ExecutionServiceClass · 0.90
AnyUserAuthorizerClass · 0.90
_IdGeneratorMockClass · 0.90
startMethod · 0.45

Tested by

no test coverage detected