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

Method __exit__

tests/test_advisor_command.py:109–116  ·  view source on GitHub ↗
(self, *a)

Source from the content-addressed store, hash-verified

107 return self
108
109 def __exit__(self, *a):
110 import src.config as cfg_mod
111 cfg_mod.GLOBAL_CONFIG_FILE = self._saved_global_path
112 cfg_mod.HISTORY_FILE = self._saved_history_path
113 cfg_mod.GLOBAL_CONFIG_DIR = self._saved_global_path.parent
114 cfg_mod._default_manager = None
115 from src.settings.settings import invalidate_settings_cache
116 invalidate_settings_cache()
117
118
119class TestAdvisorCommandGate(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected