-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make take_bug_reports
consistent with its singular version.
#602
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @winterfroststrom and @xpconanfan)
mobly/controllers/android_device.py, line 408 at r1 (raw file):
_begin_time
Is there a reason against using begin_time directly?
it's a string reference right? so it should be immutable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @winterfroststrom and @xpconanfan)
mobly/controllers/android_device.py, line 408 at r1 (raw file):
Previously, winterfroststrom wrote…
_begin_time
Is there a reason against using begin_time directly?
it's a string reference right? so it should be immutable.
I don't think you are supposed to reassign params?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @xpconanfan)
mobly/controllers/android_device.py, line 408 at r1 (raw file):
Previously, xpconanfan (Ang Li) wrote…
I don't think you are supposed to reassign params?
Isn't
if param is None:
param = ...
A really common pattern with default params?
Also simplify the timestamp generation logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @winterfroststrom and @xpconanfan)
mobly/controllers/android_device.py, line 408 at r1 (raw file):
Previously, winterfroststrom wrote…
Isn't
if param is None:
param = ...A really common pattern with default params?
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @xpconanfan)
mobly/controllers/android_device.py, line 408 at r1 (raw file):
Previously, xpconanfan (Ang Li) wrote…
Done.
what if begin_time needs to be explicitly empty string for some reason?
would it be worthwhile to change the check to "begin_time is None" instead for that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @xpconanfan)
mobly/controllers/android_device.py, line 408 at r1 (raw file):
Previously, winterfroststrom wrote…
what if begin_time needs to be explicitly empty string for some reason?
would it be worthwhile to change the check to "begin_time is None" instead for that
I don't think it's a valid use case.
But changed anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @xpconanfan)
Also simplify the timestamp generation logic.
This change is