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
1=== modified file 'tests/autopilot/reminders/__init__.py'
2--- tests/autopilot/reminders/__init__.py 2014-06-24 00:01:51 +0000
3+++ tests/autopilot/reminders/__init__.py 2014-06-25 23:03:01 +0000
4@@ -33,10 +33,12 @@
5
6
7 class RemindersAppException(Exception):
8+
9 """Exception raised when there's an error in the Reminders App."""
10
11
12 class RemindersApp(object):
13+
14 """Autopilot helper object for the Reminders application."""
15
16 def __init__(self, app_proxy):
17@@ -55,6 +57,7 @@
18
19
20 class MainView(toolkit_emulators.MainView):
21+
22 """Autopilot custom proxy object for the MainView."""
23
24 def __init__(self, *args):
25@@ -76,6 +79,7 @@
26
27
28 class NoAccountDialog(toolkit_emulators.UbuntuUIToolkitEmulatorBase):
29+
30 """Autopilot custom proxy object for the no account dialog."""
31
32 @classmethod
33@@ -110,10 +114,12 @@
34
35
36 class PulldownListView(ubuntuuitoolkit.QQuickListView):
37+
38 """Autopilot custom proxy object for the PulldownListView."""
39
40
41 class NotebooksPage(_Page):
42+
43 """Autopilot custom proxy object for the Notebooks page."""
44
45 def add_notebook(self, title):
46@@ -164,6 +170,7 @@
47
48
49 class NotebooksDelegate(toolkit_emulators.UbuntuUIToolkitEmulatorBase):
50+
51 """Autopilot custom proxy object for the NotebooksDelegate."""
52
53 def get_title(self):
54
55=== modified file 'tests/autopilot/reminders/credentials.py'
56--- tests/autopilot/reminders/credentials.py 2014-05-14 16:18:22 +0000
57+++ tests/autopilot/reminders/credentials.py 2014-06-25 23:03:01 +0000
58@@ -21,10 +21,12 @@
59
60
61 class CredentialsException(Exception):
62+
63 """Exception for credentials problems."""
64
65
66 class AccountManager(object):
67+
68 """Manager for online accounts."""
69
70 def __init__(self):
71
72=== modified file 'tests/autopilot/reminders/evernote.py'
73--- tests/autopilot/reminders/evernote.py 2014-05-15 07:02:41 +0000
74+++ tests/autopilot/reminders/evernote.py 2014-06-25 23:03:01 +0000
75@@ -30,6 +30,7 @@
76
77
78 class SandboxEvernoteClient(client.EvernoteClient):
79+
80 """Client to access the Evernote API on the sandbox server."""
81
82 def __init__(self):
83
84=== modified file 'tests/autopilot/reminders/fake_services.py'
85--- tests/autopilot/reminders/fake_services.py 2014-04-24 19:26:51 +0000
86+++ tests/autopilot/reminders/fake_services.py 2014-06-25 23:03:01 +0000
87@@ -25,6 +25,7 @@
88
89
90 class FakeURLDispatcherService(object):
91+
92 """Fake URL Dispatcher service using a dbusmock interface."""
93
94 def __init__(self):
95
96=== modified file 'tests/autopilot/reminders/tests/__init__.py'
97--- tests/autopilot/reminders/tests/__init__.py 2014-05-23 07:11:23 +0000
98+++ tests/autopilot/reminders/tests/__init__.py 2014-06-25 23:03:01 +0000
99@@ -36,6 +36,7 @@
100
101
102 class RemindersAppTestCase(AutopilotTestCase):
103+
104 """A common test case class that provides several useful methods for
105 reminders-app tests."""
106
107@@ -90,14 +91,14 @@
108 temp_dir = temp_dir_fixture.path
109 temp_xdg_config_home = os.path.join(temp_dir, '.config')
110
111- #If running under xvfb, as jenkins does,
112- #xsession will fail to start without xauthority file
113- #Thus if the Xauthority file is in the home directory
114- #make sure we copy it to our temp home directory
115+ # If running under xvfb, as jenkins does,
116+ # xsession will fail to start without xauthority file
117+ # Thus if the Xauthority file is in the home directory
118+ # make sure we copy it to our temp home directory
119 self._copy_xauthority_file(temp_dir)
120
121- #click requires using initctl env (upstart), but the desktop can set
122- #an environment variable instead
123+ # click requires using initctl env (upstart), but the desktop can set
124+ # an environment variable instead
125 if test_type == 'click':
126 self.useFixture(
127 toolkit_fixtures.InitctlEnvironmentVariable(
128
129=== modified file 'tests/autopilot/reminders/tests/test_evernote.py'
130--- tests/autopilot/reminders/tests/test_evernote.py 2014-05-15 07:02:41 +0000
131+++ tests/autopilot/reminders/tests/test_evernote.py 2014-06-25 23:03:01 +0000
132@@ -24,6 +24,7 @@
133
134
135 class EvernoteTestCase(testtools.TestCase):
136+
137 """Test the evernote access with the SDK."""
138
139 def setUp(self):
140
141=== modified file 'tests/autopilot/reminders/tests/test_reminders.py'
142--- tests/autopilot/reminders/tests/test_reminders.py 2014-05-15 07:02:41 +0000
143+++ tests/autopilot/reminders/tests/test_reminders.py 2014-06-25 23:03:01 +0000
144@@ -96,7 +96,7 @@
145 # TODO there's a bug with the last updated value: http://pad.lv/1318751
146 # so we can't check the full tuple. Uncomment this as soon as the bug
147 # is fixed. --elopio - 2014-05-12
148- #self.assertEqual(
149+ # self.assertEqual(
150 # last_notebook,
151 # (test_notebook_title, 'Last edited today', 'Private', 0))
152 self.assertEqual(last_notebook[0], test_notebook_title)

Subscribers

People subscribed via source and target branches