Set up test fixtures with temp directory.
(self)
| 145 | """Test atomic file operations directly.""" |
| 146 | |
| 147 | def setUp(self) -> None: |
| 148 | """Set up test fixtures with temp directory.""" |
| 149 | self.temp_dir = tempfile.mkdtemp() |
| 150 | self.original_get_path = TokenManager._get_secure_storage_path |
| 151 | |
| 152 | def mock_get_path() -> Path: |
| 153 | return Path(self.temp_dir) |
| 154 | |
| 155 | TokenManager._get_secure_storage_path = staticmethod(mock_get_path) |
| 156 | |
| 157 | def tearDown(self) -> None: |
| 158 | """Clean up temp directory.""" |
nothing calls this directly
no outgoing calls
no test coverage detected