mycroft-core 添加VK步骤:给定< 某些>设置为< 值>

inn6fuwd  于 2个月前  发布在  其他
关注(0)|答案(3)|浏览(36)

Would be great to have the ability to set a Skill setting value as a Given step for a Voight Kampff test.
Eg:

Given the custom news feed setting is https://example.com/
When when the user says "what's the news"
Then the News Skill will play that feed

Would it be sufficient to overwrite the settings.json file or is there a chance it will update from remote settings during the test?
Do we need to mock the settings object instead?

sauutmhj

sauutmhj1#

settings.json可以被覆盖,但技能需要通知它应该从磁盘重新加载设置。也许在技能测试器中应该关闭后端设置更新,以确保不会出现覆盖?
大约在四月份左右,我为通过 Package 器启动技能流程编写了一个演示(测试模拟了datetime工具)。我想知道这样一个 Package 器是否可以作为一种替代方法,以更可靠地注入内容。

2hh7jdfx

2hh7jdfx2#

关于禁用设置同步的全局标志,有些用户可能不想要/不喜欢它,而且这在测试中会有所帮助(避免覆盖问题)。

为什么我不喜欢技能设置?

  • 网络设置会覆盖我的本地更改(破坏了我的一些最重要的技能),与Fix remote settings overwrite at startup #2707Feature/Skill-Settings-In-GUI Revised API #2698相关。
  • 同步到所有设备,会搞乱像我的Voip技能这样的东西,因为我无法为每个设备设置不同的帐户。
  • 出于隐私原因,一旦重新实现了两步同步,像凭据(在设备上更改)这样的东西可能会上传给你。在这种情况下,凭据甚至不应该在settingsmeta中,但我们无法控制其他人的开发,分叉不应成为隐私的要求。

虽然这些问题还没有解决/实现,但我已经基本上停止使用websettings了。对我来说不是问题,但我希望其他人能够使用我的技能......
我不是要劫持这个问题,但这个简单的标志可以解决其他问题,也是这个问题的一部分。

lawou6xi

lawou6xi3#

我假设存在这样的配置。如果没有,在我看来应该添加上。

相关问题