MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_clear

Method test_clear

tests/test_mcp_auth.py:77–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

store_tokenMethod · 0.95
clearMethod · 0.95
list_serversMethod · 0.95
McpTokenStoreClass · 0.90
TokenDataClass · 0.90

Tested by

no test coverage detected