(self, *a)
| 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 | |
| 119 | class TestAdvisorCommandGate(unittest.TestCase): |
nothing calls this directly
no test coverage detected