google / google/mobly

Device-specific asserts

Open
#345 0 comments 0 reactions 1 assignee Claimed by @xpconanfan View on GitHub
new feature
Dominant language
Python
Stars
752
Forks
222
Avg merge
14d 18h
Merged PRs (30d)
1

Description

Similar to `device.log`, which prepends device debug tag to the log msg, it would be nice to have a set of `asserts` functions specific to a device.

This way we could simply do
```
device.assert_true(xxx, msg)
```

instead of having to do string formatting every time:
```
asserts.assert_true(xxx, '%s msg` % device.debug_tag)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.