Merge lp:~nskaggs/ubuntu-filemanager-app/fix-ap-tests into lp:ubuntu-filemanager-app

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 531
Merged at revision: 528
Proposed branch: lp:~nskaggs/ubuntu-filemanager-app/fix-ap-tests
Merge into: lp:ubuntu-filemanager-app
Diff against target: 73 lines (+11/-11)
4 files modified
README-Mergeproposal (+4/-0)
tests/autopilot/filemanager/__init__.py (+1/-1)
tests/autopilot/filemanager/tests/__init__.py (+2/-0)
tests/autopilot/filemanager/tests/test_filemanager.py (+4/-10)
To merge this branch: bzr merge lp:~nskaggs/ubuntu-filemanager-app/fix-ap-tests
Reviewer Review Type Date Requested Status
Jenkins Bot continuous-integration Approve
Ubuntu File Manager Developers Pending
Review via email: mp+288189@code.launchpad.net

Commit message

Fix AP tests

Description of the change

Fix AP tests

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

Since AP tests don't run on build; I've done a first run here: https://core-apps-jenkins.ubuntu.com/view/Release/job/run-ap-tests-release/9/

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

The errors during the run come from system issues surrounding the keyboard; The previous issues have been corrected. Next up, pruning the list of tests.

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'README-Mergeproposal'
--- README-Mergeproposal 2015-12-19 07:34:45 +0000
+++ README-Mergeproposal 2016-03-07 15:16:16 +0000
@@ -26,3 +26,7 @@
26The above checklist is more of a guideline to help file manager app trunk stay buildable,26The above checklist is more of a guideline to help file manager app trunk stay buildable,
27stable and up to date.27stable and up to date.
2828
29
30Jenkins
31=======
32In addition to manual reviews, merge proposals are subject to being run in jenkins to ensure the application builds and any unit tests are successful. For more information on jenkins and how it works, see the [Core Apps Jenkins Wiki](https://wiki.ubuntu.com/Touch/CoreApps/Jenkins)
2933
=== modified file 'tests/autopilot/filemanager/__init__.py'
--- tests/autopilot/filemanager/__init__.py 2016-01-14 16:44:26 +0000
+++ tests/autopilot/filemanager/__init__.py 2016-03-07 15:16:16 +0000
@@ -606,7 +606,7 @@
606 """FileDetailsPopover Autopilot emulator."""606 """FileDetailsPopover Autopilot emulator."""
607607
608 def get_path(self):608 def get_path(self):
609 return self.select_single('Label', objectName='pathLabel').text609 return self.select_single('UCLabel', objectName='pathLabel').text
610610
611611
612class PathBar(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):612class PathBar(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
613613
=== modified file 'tests/autopilot/filemanager/tests/__init__.py'
--- tests/autopilot/filemanager/tests/__init__.py 2015-03-12 20:58:23 +0000
+++ tests/autopilot/filemanager/tests/__init__.py 2016-03-07 15:16:16 +0000
@@ -32,6 +32,8 @@
3232
33import filemanager33import filemanager
34from filemanager import fixture_setup as fm_fixtures34from filemanager import fixture_setup as fm_fixtures
35import gi
36gi.require_version('Click', '0.4')
35from gi.repository import Click37from gi.repository import Click
3638
37logger = logging.getLogger(__name__)39logger = logging.getLogger(__name__)
3840
=== modified file 'tests/autopilot/filemanager/tests/test_filemanager.py'
--- tests/autopilot/filemanager/tests/test_filemanager.py 2015-03-10 21:41:40 +0000
+++ tests/autopilot/filemanager/tests/test_filemanager.py 2016-03-07 15:16:16 +0000
@@ -312,13 +312,10 @@
312312
313 def test_copy_directory(self):313 def test_copy_directory(self):
314 # Set up a directory to copy and a directory to copy it into.314 # Set up a directory to copy and a directory to copy it into.
315 destination_dir_path = os.path.join(self.fakehome,315 destination_dir_path = self.make_directory_in_home()
316 'destination')
317 destination_dir_name = os.path.basename(destination_dir_path)316 destination_dir_name = os.path.basename(destination_dir_path)
318 os.mkdir(destination_dir_path)317 dir_to_copy_path = self.make_directory_in_home()
319 dir_to_copy_path = os.path.join(self.fakehome, 'to_copy')
320 dir_to_copy_name = os.path.basename(dir_to_copy_path)318 dir_to_copy_name = os.path.basename(dir_to_copy_path)
321 os.mkdir(dir_to_copy_path)
322319
323 folder_list_page = self.app.main_view.get_folder_list_page()320 folder_list_page = self.app.main_view.get_folder_list_page()
324 self._assert_number_of_files(2)321 self._assert_number_of_files(2)
@@ -349,13 +346,10 @@
349346
350 def test_cut_directory(self):347 def test_cut_directory(self):
351 # Set up a directory to cut and a directory to move it into.348 # Set up a directory to cut and a directory to move it into.
352 destination_dir_path = os.path.join(self.fakehome,349 destination_dir_path = self.make_directory_in_home()
353 'destination')
354 destination_dir_name = os.path.basename(destination_dir_path)350 destination_dir_name = os.path.basename(destination_dir_path)
355 os.mkdir(destination_dir_path)351 dir_to_cut_path = self.make_directory_in_home()
356 dir_to_cut_path = os.path.join(self.fakehome, 'to_cut')
357 dir_to_cut_name = os.path.basename(dir_to_cut_path)352 dir_to_cut_name = os.path.basename(dir_to_cut_path)
358 os.mkdir(dir_to_cut_path)
359353
360 folder_list_page = self.app.main_view.get_folder_list_page()354 folder_list_page = self.app.main_view.get_folder_list_page()
361 self._assert_number_of_files(2)355 self._assert_number_of_files(2)

Subscribers

People subscribed via source and target branches