Merge lp:~nskaggs/reminders-app/fix-new-pep8 into lp:reminders-app

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 166
Merged at revision: 166
Proposed branch: lp:~nskaggs/reminders-app/fix-new-pep8
Merge into: lp:reminders-app
Diff against target: 152 lines (+20/-7)
7 files modified
tests/autopilot/reminders/__init__.py (+7/-0)
tests/autopilot/reminders/credentials.py (+2/-0)
tests/autopilot/reminders/evernote.py (+1/-0)
tests/autopilot/reminders/fake_services.py (+1/-0)
tests/autopilot/reminders/tests/__init__.py (+7/-6)
tests/autopilot/reminders/tests/test_evernote.py (+1/-0)
tests/autopilot/reminders/tests/test_reminders.py (+1/-1)
To merge this branch: bzr merge lp:~nskaggs/reminders-app/fix-new-pep8
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Leo Arias (community) Approve
Ubuntu Notes app developers Pending
Review via email: mp+224536@code.launchpad.net

Commit message

Update pep8 compliance

Description of the change

Update pep8 compliance

To post a comment you must log in.
Revision history for this message
Leo Arias (elopio) :
review: Approve
Revision history for this message
Leo Arias (elopio) wrote :

Sorry for the bad review.

According to pep257, There's no blank line either before or after the docstring.

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

It also says:
Insert a blank line before and after all docstrings (one-line or multi-line) that document a class

I need a break :D

review: Approve
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
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: Needs Fixing (continuous-integration)
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
=== modified file 'tests/autopilot/reminders/__init__.py'
--- tests/autopilot/reminders/__init__.py 2014-06-24 00:01:51 +0000
+++ tests/autopilot/reminders/__init__.py 2014-06-25 23:03:01 +0000
@@ -33,10 +33,12 @@
3333
3434
35class RemindersAppException(Exception):35class RemindersAppException(Exception):
36
36 """Exception raised when there's an error in the Reminders App."""37 """Exception raised when there's an error in the Reminders App."""
3738
3839
39class RemindersApp(object):40class RemindersApp(object):
41
40 """Autopilot helper object for the Reminders application."""42 """Autopilot helper object for the Reminders application."""
4143
42 def __init__(self, app_proxy):44 def __init__(self, app_proxy):
@@ -55,6 +57,7 @@
5557
5658
57class MainView(toolkit_emulators.MainView):59class MainView(toolkit_emulators.MainView):
60
58 """Autopilot custom proxy object for the MainView."""61 """Autopilot custom proxy object for the MainView."""
5962
60 def __init__(self, *args):63 def __init__(self, *args):
@@ -76,6 +79,7 @@
7679
7780
78class NoAccountDialog(toolkit_emulators.UbuntuUIToolkitEmulatorBase):81class NoAccountDialog(toolkit_emulators.UbuntuUIToolkitEmulatorBase):
82
79 """Autopilot custom proxy object for the no account dialog."""83 """Autopilot custom proxy object for the no account dialog."""
8084
81 @classmethod85 @classmethod
@@ -110,10 +114,12 @@
110114
111115
112class PulldownListView(ubuntuuitoolkit.QQuickListView):116class PulldownListView(ubuntuuitoolkit.QQuickListView):
117
113 """Autopilot custom proxy object for the PulldownListView."""118 """Autopilot custom proxy object for the PulldownListView."""
114119
115120
116class NotebooksPage(_Page):121class NotebooksPage(_Page):
122
117 """Autopilot custom proxy object for the Notebooks page."""123 """Autopilot custom proxy object for the Notebooks page."""
118124
119 def add_notebook(self, title):125 def add_notebook(self, title):
@@ -164,6 +170,7 @@
164170
165171
166class NotebooksDelegate(toolkit_emulators.UbuntuUIToolkitEmulatorBase):172class NotebooksDelegate(toolkit_emulators.UbuntuUIToolkitEmulatorBase):
173
167 """Autopilot custom proxy object for the NotebooksDelegate."""174 """Autopilot custom proxy object for the NotebooksDelegate."""
168175
169 def get_title(self):176 def get_title(self):
170177
=== modified file 'tests/autopilot/reminders/credentials.py'
--- tests/autopilot/reminders/credentials.py 2014-05-14 16:18:22 +0000
+++ tests/autopilot/reminders/credentials.py 2014-06-25 23:03:01 +0000
@@ -21,10 +21,12 @@
2121
2222
23class CredentialsException(Exception):23class CredentialsException(Exception):
24
24 """Exception for credentials problems."""25 """Exception for credentials problems."""
2526
2627
27class AccountManager(object):28class AccountManager(object):
29
28 """Manager for online accounts."""30 """Manager for online accounts."""
2931
30 def __init__(self):32 def __init__(self):
3133
=== modified file 'tests/autopilot/reminders/evernote.py'
--- tests/autopilot/reminders/evernote.py 2014-05-15 07:02:41 +0000
+++ tests/autopilot/reminders/evernote.py 2014-06-25 23:03:01 +0000
@@ -30,6 +30,7 @@
3030
3131
32class SandboxEvernoteClient(client.EvernoteClient):32class SandboxEvernoteClient(client.EvernoteClient):
33
33 """Client to access the Evernote API on the sandbox server."""34 """Client to access the Evernote API on the sandbox server."""
3435
35 def __init__(self):36 def __init__(self):
3637
=== modified file 'tests/autopilot/reminders/fake_services.py'
--- tests/autopilot/reminders/fake_services.py 2014-04-24 19:26:51 +0000
+++ tests/autopilot/reminders/fake_services.py 2014-06-25 23:03:01 +0000
@@ -25,6 +25,7 @@
2525
2626
27class FakeURLDispatcherService(object):27class FakeURLDispatcherService(object):
28
28 """Fake URL Dispatcher service using a dbusmock interface."""29 """Fake URL Dispatcher service using a dbusmock interface."""
2930
30 def __init__(self):31 def __init__(self):
3132
=== modified file 'tests/autopilot/reminders/tests/__init__.py'
--- tests/autopilot/reminders/tests/__init__.py 2014-05-23 07:11:23 +0000
+++ tests/autopilot/reminders/tests/__init__.py 2014-06-25 23:03:01 +0000
@@ -36,6 +36,7 @@
3636
3737
38class RemindersAppTestCase(AutopilotTestCase):38class RemindersAppTestCase(AutopilotTestCase):
39
39 """A common test case class that provides several useful methods for40 """A common test case class that provides several useful methods for
40 reminders-app tests."""41 reminders-app tests."""
4142
@@ -90,14 +91,14 @@
90 temp_dir = temp_dir_fixture.path91 temp_dir = temp_dir_fixture.path
91 temp_xdg_config_home = os.path.join(temp_dir, '.config')92 temp_xdg_config_home = os.path.join(temp_dir, '.config')
9293
93 #If running under xvfb, as jenkins does,94 # If running under xvfb, as jenkins does,
94 #xsession will fail to start without xauthority file95 # xsession will fail to start without xauthority file
95 #Thus if the Xauthority file is in the home directory96 # Thus if the Xauthority file is in the home directory
96 #make sure we copy it to our temp home directory97 # make sure we copy it to our temp home directory
97 self._copy_xauthority_file(temp_dir)98 self._copy_xauthority_file(temp_dir)
9899
99 #click requires using initctl env (upstart), but the desktop can set100 # click requires using initctl env (upstart), but the desktop can set
100 #an environment variable instead101 # an environment variable instead
101 if test_type == 'click':102 if test_type == 'click':
102 self.useFixture(103 self.useFixture(
103 toolkit_fixtures.InitctlEnvironmentVariable(104 toolkit_fixtures.InitctlEnvironmentVariable(
104105
=== modified file 'tests/autopilot/reminders/tests/test_evernote.py'
--- tests/autopilot/reminders/tests/test_evernote.py 2014-05-15 07:02:41 +0000
+++ tests/autopilot/reminders/tests/test_evernote.py 2014-06-25 23:03:01 +0000
@@ -24,6 +24,7 @@
2424
2525
26class EvernoteTestCase(testtools.TestCase):26class EvernoteTestCase(testtools.TestCase):
27
27 """Test the evernote access with the SDK."""28 """Test the evernote access with the SDK."""
2829
29 def setUp(self):30 def setUp(self):
3031
=== modified file 'tests/autopilot/reminders/tests/test_reminders.py'
--- tests/autopilot/reminders/tests/test_reminders.py 2014-05-15 07:02:41 +0000
+++ tests/autopilot/reminders/tests/test_reminders.py 2014-06-25 23:03:01 +0000
@@ -96,7 +96,7 @@
96 # TODO there's a bug with the last updated value: http://pad.lv/131875196 # TODO there's a bug with the last updated value: http://pad.lv/1318751
97 # so we can't check the full tuple. Uncomment this as soon as the bug97 # so we can't check the full tuple. Uncomment this as soon as the bug
98 # is fixed. --elopio - 2014-05-1298 # is fixed. --elopio - 2014-05-12
99 #self.assertEqual(99 # self.assertEqual(
100 # last_notebook,100 # last_notebook,
101 # (test_notebook_title, 'Last edited today', 'Private', 0))101 # (test_notebook_title, 'Last edited today', 'Private', 0))
102 self.assertEqual(last_notebook[0], test_notebook_title)102 self.assertEqual(last_notebook[0], test_notebook_title)

Subscribers

People subscribed via source and target branches