(self)
| 26 | |
| 27 | class 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] |