MCPcopy Create free account
hub / github.com/RightNow-AI/rightnow-cli / test_has_api_key_true

Method test_has_api_key_true

tests/test_cache.py:144–147  ·  view source on GitHub ↗

Test has_api_key when key is configured.

(self, cache_manager)

Source from the content-addressed store, hash-verified

142 assert cache_manager.has_api_key() is False
143
144 def test_has_api_key_true(self, cache_manager):
145 """Test has_api_key when key is configured."""
146 cache_manager.save_config({"openrouter_api_key": "test-key"})
147 assert cache_manager.has_api_key() is True
148
149 def test_get_api_key_none(self, cache_manager):
150 """Test get_api_key when no key is configured."""

Callers

nothing calls this directly

Calls 2

save_configMethod · 0.80
has_api_keyMethod · 0.80

Tested by

no test coverage detected