-
Notifications
You must be signed in to change notification settings - Fork 49
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
Checkbox 417/wireless detect #507
Conversation
move dbus import to where it belong
modify mocked input
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.
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.
We are getting there! A few last comments and I think this should be good to land.
Thanks a lot for your patience and perseverance, @diohe0311 !
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.
Looks good to me, thanks a lot for your time working on this, Dio!
Description
The issue is occurs in IoT device while running wireless detect test without WiFi connection.
If there is no WiFi connection, the device didn't turns OFF network module but turns into dormant state, which causing issue.
I add a exception handling to avoid OSError interrupt testing.
(Additionally, there is a indirectly import problem in network_device_info.py ocurrs during testing, this is because the imported module is not the standard module in tox venv.
After discuss with Pierre, Maciej and Massimiliano, since the module is not been used in unit test, the simplest solution is move importing line to where the function is actually needed.)
Resolved issues
https://warthogs.atlassian.net/jira/software/c/projects/CHECKBOX/boards/590?modal=detail&selectedIssue=CHECKBOX-417
Documentation
Tests
$./manage.py test -u (in checkbox/providers/base)
Tested in 10.102.160.211 (Ubuntu 20.04.6) and my laptop.