test(core): update bot fixtures for platform policy checks

This commit is contained in:
RockChinQ
2026-10-15 05:31:04 +00:00
parent 625ee67113
commit 68a3f64cef
4 changed files with 20 additions and 5 deletions
@@ -114,7 +114,12 @@ async def test_runtime_error_redacts_persisted_secrets_on_partial_update():
)
service = BotService(ap)
service.get_bot = AsyncMock(
return_value={'uuid': 'bot-1', 'enable': True, 'adapter_config': {'app_secret': 'persisted-secret-value'}}
return_value={
'uuid': 'bot-1',
'adapter': 'aiocqhttp',
'enable': True,
'adapter_config': {'app_secret': 'persisted-secret-value'},
}
)
with pytest.raises(BotApplyError) as captured:
await service.update_bot('workspace-test', 'bot-1', {'enable': True})