Merge lp:~canonical-platform-qa/ubuntu-filemanager-app/fix-context-menu-autopilot-test into lp:ubuntu-filemanager-app

Proposed by Chris Gagnon
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 339
Merged at revision: 339
Proposed branch: lp:~canonical-platform-qa/ubuntu-filemanager-app/fix-context-menu-autopilot-test
Merge into: lp:ubuntu-filemanager-app
Diff against target: 36 lines (+4/-4)
1 file modified
tests/autopilot/filemanager/tests/test_context_menu.py (+4/-4)
To merge this branch: bzr merge lp:~canonical-platform-qa/ubuntu-filemanager-app/fix-context-menu-autopilot-test
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Nicholas Skaggs (community) Approve
Review via email: mp+243349@code.launchpad.net

Commit message

fix broken autopilot test in test_context_menu

Description of the change

fix broken autopilot test in test_context_menu

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

FAILED: Continuous integration, rev:338
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~canonical-platform-qa/ubuntu-filemanager-app/fix-context-menu-autopilot-test/+merge/243349/+edit-commit-message

http://91.189.93.70:8080/job/ubuntu-filemanager-app-ci/414/
Executed test runs:
    SUCCESS: http://91.189.93.70:8080/job/generic-mediumtests-vivid/401
        deb: http://91.189.93.70:8080/job/generic-mediumtests-vivid/401/artifact/work/output/*zip*/output.zip
    SUCCESS: http://91.189.93.70:8080/job/ubuntu-filemanager-app-vivid-amd64-ci/36

Click here to trigger a rebuild:
http://91.189.93.70:8080/job/ubuntu-filemanager-app-ci/414/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

If this change is made, it should also be made to test_rename_file. What bug are you seeing that makes the assertEquals fail or otherwise not be representative?

review: Needs Fixing
Revision history for this message
Chris Gagnon (chris.gagnon) wrote :
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
339. By Chris Gagnon

fix the other tests in test_context_menu

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

I've update all the test cases in test_context_menu

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

LGTM, thanks for fixing the rest of these.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/filemanager/tests/test_context_menu.py'
2--- tests/autopilot/filemanager/tests/test_context_menu.py 2014-09-22 21:43:02 +0000
3+++ tests/autopilot/filemanager/tests/test_context_menu.py 2014-12-02 17:52:30 +0000
4@@ -38,7 +38,7 @@
5 self.app.main_view.rename(original_directory, new_name)
6
7 files_and_folders = self.get_current_directory_files_and_folders()
8- self.assertEquals(files_and_folders, [new_name])
9+ self.assertTrue(new_name in files_and_folders)
10
11 def test_rename_file(self):
12 """Test renaming a file.
13@@ -52,7 +52,7 @@
14 self.app.main_view.rename(original_file, new_name)
15
16 files_and_folders = self.get_current_directory_files_and_folders()
17- self.assertEquals(files_and_folders, [new_name])
18+ self.assertTrue(new_name in files_and_folders)
19
20 def test_delete_directory(self):
21 """Test deleting a directory.
22@@ -66,7 +66,7 @@
23 self.app.main_view.delete(dir_name)
24
25 files_and_folders = self.get_current_directory_files_and_folders()
26- self.assertEquals(files_and_folders, [])
27+ self.assertFalse(dir_name in files_and_folders)
28
29 def test_delete_file(self):
30 """Test deleting a file.
31@@ -79,4 +79,4 @@
32 self.app.main_view.delete(file_name)
33
34 files_and_folders = self.get_current_directory_files_and_folders()
35- self.assertEquals(files_and_folders, [])
36+ self.assertFalse(file_name in files_and_folders)

Subscribers

People subscribed via source and target branches