Skip to content
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

Add devicetime unittest #309

Merged
merged 4 commits into from
Jan 8, 2019
Merged

Add devicetime unittest #309

merged 4 commits into from
Jan 8, 2019

Conversation

ki4070ma
Copy link
Collaborator

@ki4070ma ki4070ma commented Jan 6, 2019

@KazuCocoa
Copy link
Member

Thanks. The method can set format argument like below.
https://github.com/appium/ruby_lib_core/blob/680577d83356fc19d5fc435d5e49f0fea3c1442a/lib/appium_lib_core/common/base/driver.rb#L613-L627

Can you extend current method format to it if you have a chance?

@ki4070ma
Copy link
Collaborator Author

ki4070ma commented Jan 7, 2019

Thanks for your review.
And ok, will do.

appium_command('/session/1234567890/appium/device/system_time'),
body='{"value": ""}'
)
driver.device_time # Expected no exception
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add one assertion?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, my assertion was not enough.
I've changed here to check if return value is same to value in body.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's reasonable. Thanks.
One thing is could you use single quote?
CI should be green after rebasing current master

@KazuCocoa KazuCocoa merged commit a40a933 into appium:master Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants