Merge lp://staging/~elopio/ubuntu-filemanager-app/clean_context_menu_tests into lp://staging/ubuntu-filemanager-app

Proposed by Leo Arias
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 205
Merged at revision: 210
Proposed branch: lp://staging/~elopio/ubuntu-filemanager-app/clean_context_menu_tests
Merge into: lp://staging/ubuntu-filemanager-app
Diff against target: 766 lines (+306/-178)
6 files modified
debian/control (+2/-1)
tests/autopilot/filemanager/emulators.py (+86/-24)
tests/autopilot/filemanager/fixture_setup.py (+78/-0)
tests/autopilot/filemanager/tests/__init__.py (+42/-10)
tests/autopilot/filemanager/tests/test_context_menu.py (+83/-0)
tests/autopilot/filemanager/tests/test_filemanager.py (+15/-143)
To merge this branch: bzr merge lp://staging/~elopio/ubuntu-filemanager-app/clean_context_menu_tests
Reviewer Review Type Date Requested Status
Nicholas Skaggs (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+222888@code.staging.launchpad.net

Commit message

Refactored the first group of context menu tests.

Description of the change

I removed some clean ups unnecessary as we are working on a temp folder that will be deleted. I also removed the two tests that check the context popover is opened, because we are doing that check on open_actions.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

_copy_xauthority_file needs a little tweaking.. ~ is better expanded as os.environ.get('HOME'). I seem to remember a bug we found where this didn't expand properly.

Also, getting this error running on the device. Rebasing with trunk didn't seem to change anything;

17:09:09.133 ERROR testresult:46 - traceback: {{{
Traceback (most recent call last):
File "/home/phablet/autopilot/filemanager/tests/test_context_menu.py", line 41, in test_rename_directory
files_and_folders = self.get_current_directory_files_and_folders()
File "/home/phablet/autopilot/filemanager/tests/test_context_menu.py", line 27, in get_current_directory_files_and_folders
return folder_list_page.get_files_and_folders()
File "/home/phablet/autopilot/filemanager/emulators.py", line 216, in get_files_and_folders
raise NotImplementedError()
NotImplementedError
}}}

review: Needs Fixing
Revision history for this message
Leo Arias (elopio) wrote :

I'm sorry about the exception. It should be ready now.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

LGTM now..

Ran 22 tests in 491.443s
OK

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches