MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / setUp

Method setUp

tests/logger/test_setup_logging.py:28–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26
27class TestSetupLogging(unittest.TestCase):
28 def setUp(self):
29 self.temp_dir = tempfile.mkdtemp(prefix="logger_setup_test_")
30 self.patches = [
31 patch("fastdeploy.envs.FD_LOG_DIR", self.temp_dir),
32 patch("fastdeploy.envs.FD_DEBUG", 0),
33 patch("fastdeploy.envs.FD_LOG_BACKUP_COUNT", "3"),
34 ]
35 [p.start() for p in self.patches]
36
37 def tearDown(self):
38 [p.stop() for p in self.patches]

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected