(self, key)
| 34 | return self.load_cached_api_key() |
| 35 | |
| 36 | def cache_api_key(self, key): |
| 37 | if not key: |
| 38 | return |
| 39 | self.telemetry_cache_dir.mkdir(parents=True, exist_ok=True) |
| 40 | self.cloud_api_key_cache_file.write_text(key) |
| 41 | |
| 42 | def load_cached_api_key(self): |
| 43 | if not self.cloud_api_key_cache_file.exists(): |
no outgoing calls
no test coverage detected