(self)
| 75 | os.unlink(f.name) |
| 76 | |
| 77 | def test_clear(self): |
| 78 | with tempfile.NamedTemporaryFile(suffix=".json", delete=False) as f: |
| 79 | store = McpTokenStore(store_path=__import__("pathlib").Path(f.name)) |
| 80 | store.store_token("s1", TokenData(access_token="t1")) |
| 81 | store.clear() |
| 82 | assert store.list_servers() == [] |
| 83 | os.unlink(f.name) |
| 84 | |
| 85 | def test_persistence(self): |
| 86 | from pathlib import Path |
nothing calls this directly
no test coverage detected