Merge lp:~saviq/unity8/fix-flake8 into lp:unity8
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Michał Sawicz on 2015-04-22 | ||||
| Approved revision: | 1733 | ||||
| Merged at revision: | 1741 | ||||
| Proposed branch: | lp:~saviq/unity8/fix-flake8 | ||||
| Merge into: | lp:unity8 | ||||
| Diff against target: |
512 lines (+74/-53) 14 files modified
tests/autopilot/unity8/application_lifecycle/tests/test_application_lifecycle.py (+0/-2) tests/autopilot/unity8/fixture_setup.py (+2/-0) tests/autopilot/unity8/greeter/tests/__init__.py (+3/-1) tests/autopilot/unity8/greeter/tests/test_args.py (+4/-2) tests/autopilot/unity8/indicators/__init__.py (+8/-7) tests/autopilot/unity8/indicators/tests/__init__.py (+1/-0) tests/autopilot/unity8/indicators/tests/test_action_latency.py (+21/-18) tests/autopilot/unity8/shell/emulators/dash.py (+15/-10) tests/autopilot/unity8/shell/emulators/greeter.py (+0/-1) tests/autopilot/unity8/shell/emulators/tutorial.py (+0/-1) tests/autopilot/unity8/shell/tests/__init__.py (+1/-0) tests/autopilot/unity8/shell/tests/test_lock_screen.py (+4/-4) tests/autopilot/unity8/shell/tests/test_notifications.py (+14/-6) tests/autopilot/unity8/shell/tests/test_tutorial.py (+1/-1) |
||||
| To merge this branch: | bzr merge lp:~saviq/unity8/fix-flake8 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Leo Arias (community) | 2015-04-16 | Approve on 2015-04-21 | |
| PS Jenkins bot | continuous-integration | Needs Fixing on 2015-04-21 | |
| Unity Team | 2015-04-16 | Pending | |
|
Review via email:
|
|||
Commit Message
Fix flake8 warnings
Description of the Change
* Are there any related MPs required for this MP to build/function as expected? Please list.
N
* Did you perform an exploratory manual test run of your code change and any related functionality?
Y
* Did you make sure that your branch does not contain spurious tags?
Y
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
* If you changed the UI, has there been a design review?
N/A
| Leo Arias (elopio) wrote : | # |
Oh, also:
elopio@
./.bazaar/
./tests/
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1731
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1732. By Michał Sawicz on 2015-04-20
-
Fix more
- 1733. By Michał Sawicz on 2015-04-20
-
One more tweak
| Leo Arias (elopio) wrote : | # |
Looks good. Waiting for jenkins to confirm that the tutorial test is green again.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1733
http://
Executed test runs:
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1733
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1733
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

Awesome, thanks saviq.
A couple of things:
46+ main_window = \ select_ single( main_window_ emulator. QQuickView)
47+ unity_proxy.
This is correct, but people in python avoid the \ as much as possible. This is what they have recommended to me instead:
main_window = ( proxy.select_ single( main_window_ emulator. QQuickView) )
unity_
I think it's uglier, but I do it for consistency. I won't complaint if you prefer the \ here.
322+ self.select_ single( objectName= "processingIndi cator") \ wait_for( False)
323+ .visible.
This should be split after the parenthesis, like:
self.select_single( "processingIndi cator") .visible. wait_for(
objectName=
False)
or,
processing_ indicator = self.select_ single( objectName= "processingIndi cator") indicator. visible. wait_for( False)
processing_
I prefer using two statements.
495-from unity8. shell.emulators import tutorial # NOQA
This is needed, it populates the autopilot object registry, used to match QML elements to custom proxy objects. It has a comment in the line before mentioning that. The # NOQA should take care of the flake8 error.
Needs fixing, because that last removed import will make the tests fail.