验证活动宿主适配器与千问门牌
This commit is contained in:
parent
cf5dd99cf5
commit
43be75b60a
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,11 @@ class SharedPersonaContextTest(unittest.TestCase):
|
||||||
self.assertFalse(topology['host_switch_requires_reteaching'])
|
self.assertFalse(topology['host_switch_requires_reteaching'])
|
||||||
self.assertEqual(topology['hosts']['qoder']['redirect_host'], 'qwen')
|
self.assertEqual(topology['hosts']['qoder']['redirect_host'], 'qwen')
|
||||||
self.assertTrue(topology['hosts']['claude']['state'].startswith('RETIRED'))
|
self.assertTrue(topology['hosts']['claude']['state'].startswith('RETIRED'))
|
||||||
|
for host in ['codex', 'zcode', 'doubao', 'qwen']:
|
||||||
|
adapter = Path(topology['hosts'][host]['adapter'].replace('~', str(Path.home()), 1))
|
||||||
|
self.assertTrue(adapter.is_file(), f'missing active adapter: {host}: {adapter}')
|
||||||
|
self.assertTrue(Path(topology['hosts']['qwen']['doorplate']).is_file())
|
||||||
|
self.assertTrue(Path(topology['hosts']['claude']['history']).is_dir())
|
||||||
|
|
||||||
def test_every_host_reads_one_current_brain(self):
|
def test_every_host_reads_one_current_brain(self):
|
||||||
values = {host: self.load(host) for host in ['codex', 'zcode', 'doubao', 'qwen', 'qoder', 'qoderwork', 'claude']}
|
values = {host: self.load(host) for host in ['codex', 'zcode', 'doubao', 'qwen', 'qoder', 'qoderwork', 'claude']}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue