(self)
| 22 | """Test save/load/clear/get_token for ~/.lap/credentials.json.""" |
| 23 | |
| 24 | def setup_method(self): |
| 25 | self.tmpdir = tempfile.mkdtemp() |
| 26 | self.creds_dir = Path(self.tmpdir) / ".lap" |
| 27 | self.creds_file = self.creds_dir / "credentials.json" |
| 28 | # Patch module-level paths |
| 29 | self._dir_patch = patch.object(auth, "CREDENTIALS_DIR", self.creds_dir) |
| 30 | self._file_patch = patch.object(auth, "CREDENTIALS_FILE", self.creds_file) |
| 31 | self._dir_patch.start() |
| 32 | self._file_patch.start() |
| 33 | |
| 34 | def teardown_method(self): |
| 35 | self._dir_patch.stop() |
nothing calls this directly
no outgoing calls
no test coverage detected