(self)
| 261 | """Tests for `write_info_file`, `remove_info_file`, and `get_all`.""" |
| 262 | |
| 263 | def setUp(self): |
| 264 | super().setUp() |
| 265 | patcher = mock.patch.dict(os.environ, {"TMPDIR": self.get_temp_dir()}) |
| 266 | patcher.start() |
| 267 | self.addCleanup(patcher.stop) |
| 268 | tempfile.tempdir = None # force `gettempdir` to reinitialize from env |
| 269 | self.info_dir = manager._get_info_dir() # ensure that directory exists |
| 270 | |
| 271 | def _list_info_dir(self): |
| 272 | return os.listdir(self.info_dir) |
nothing calls this directly
no test coverage detected