iotile / iotile/python_iotile_cloud

Add a key API to mock_cloud

未关闭
#58 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
3
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

https://github.com/iotile/python_iotile_cloud/blob/master/iotile_cloud/utils/mock_cloud.py#L109

Specifically, I'd like to run a unit test that exercises this code:

```
archtool = archbuild.arch.ArchTools()
try:
archtool.set_key(self._uuid, "SSH", password, True)
except ExternalError:
raise ExternalError("Setting password in cloud failed",
suggestion="Get admin to delete old password or use set_password to pass the old password")
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start in iotile_cloud/utils/mock_cloud.py around line 109 and trace the mocked cloud API used by ArchTools.set_key. Add the key-related API needed for a unit test to exercise this path, then verify that the test can reach the set_key call and cover the shown error handling without relying on the real cloud.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
testing-qa
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。