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

Method setUp

tests/logger/test_logger.py:30–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 """Modified test class, testing internal methods through instances"""
29
30 def setUp(self):
31 self.tmp_dir = tempfile.mkdtemp(prefix="fd_unittest_")
32 self.env_patchers = [
33 patch("fastdeploy.envs.FD_LOG_DIR", self.tmp_dir),
34 patch("fastdeploy.envs.FD_DEBUG", 0),
35 patch("fastdeploy.envs.FD_LOG_BACKUP_COUNT", 1),
36 ]
37 for p in self.env_patchers:
38 p.start()
39
40 # Create test instance
41 self.logger = FastDeployLogger()
42
43 def tearDown(self):
44 for p in self.env_patchers:

Callers

nothing calls this directly

Calls 2

FastDeployLoggerClass · 0.90
startMethod · 0.45

Tested by

no test coverage detected