MCPcopy Index your code
hub / github.com/StackStorm/st2 / setUp

Method setUp

st2common/tests/unit/test_logger.py:66–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 tests_config.parse_args()
65
66 def setUp(self):
67 super(LoggerTestCase, self).setUp()
68 self.config_text = open(CONFIG_FILE_PATH).read()
69 self.cfg_fd, self.cfg_path = tempfile.mkstemp()
70 self.info_log_fd, self.info_log_path = tempfile.mkstemp()
71 self.audit_log_fd, self.audit_log_path = tempfile.mkstemp()
72 with open(self.cfg_path, "a") as f:
73 f.write(self.config_text.format(self.info_log_path, self.audit_log_path))
74
75 def tearDown(self):
76 self._remove_tempfile(self.cfg_fd, self.cfg_path)

Callers

nothing calls this directly

Calls 3

writeMethod · 0.80
readMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected