(self)
| 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: |
nothing calls this directly
no test coverage detected