You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does is_visible use stbt.match_text or stbt.ocr as its first operation? You can often discard 90% of false-positives by doing a fast match operation first, for example:
return (stbt.match("image-that-is-present-in-this-and-some-other-screens.png") and
stbt.match_text("text that is only present in this screen"))
Some ideas for lints inspired by code seen in the wild:
assert-true-has-no-effect
assert True
statement has no effect. Remove this line or replace it withpass
assert True
statement has no effect. Perhaps you meantlogging.info("Things are fine")
assert-unnecessary-if
Unnecessary
if
statement. Consider rewriting withassert
:assert stbt.match('abcd.png'), "Didn't find abcd menu"
But this code is fine:
return-unnecessary-if
This one is possibly more contentious:
This is preferred:
The text was updated successfully, but these errors were encountered: