Merge ~cjwatson/launchpad:doctest-want-line-length-noqa into launchpad:master
- Git
- lp:~cjwatson/launchpad
- doctest-want-line-length-noqa
- Merge into master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | a57bb6558f70c56914ff732162f63a35168ca860 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:doctest-want-line-length-noqa |
Merge into: | launchpad:master |
Diff against target: |
2085 lines (+215/-193) 83 files modified
lib/lp/app/browser/doc/watermark.txt (+1/-1) lib/lp/app/doc/displaying-paragraphs-of-text.txt (+7/-7) lib/lp/app/doc/tales.txt (+1/-1) lib/lp/app/doc/textformatting.txt (+1/-1) lib/lp/blueprints/stories/blueprints/xx-creation.txt (+1/-1) lib/lp/blueprints/stories/blueprints/xx-distrorelease.txt (+1/-1) lib/lp/blueprints/stories/blueprints/xx-editing.txt (+9/-9) lib/lp/blueprints/stories/blueprints/xx-superseding.txt (+2/-2) lib/lp/blueprints/stories/standalone/xx-informational-blueprints.txt (+1/-1) lib/lp/bugs/browser/tests/bugtask-search-views.txt (+1/-2) lib/lp/bugs/browser/tests/person-bug-views.txt (+5/-5) lib/lp/bugs/doc/bugnotification-email.txt (+2/-0) lib/lp/bugs/doc/bugnotification-sending.txt (+1/-1) lib/lp/bugs/stories/bug-also-affects/xx-bug-also-affects.txt (+2/-2) lib/lp/bugs/stories/bugattachments/xx-attachments-to-bug-report.txt (+1/-1) lib/lp/bugs/stories/bugattachments/xx-bugattachments.txt (+3/-3) lib/lp/bugs/stories/bugs/xx-bug-text-pages.txt (+1/-0) lib/lp/bugs/stories/bugs/xx-incomplete-bugs.txt (+1/-1) lib/lp/bugs/stories/bugtask-management/xx-bugtask-edit-forms.txt (+1/-1) lib/lp/bugs/stories/bugtask-management/xx-change-milestone.txt (+2/-2) lib/lp/bugs/stories/feeds/xx-bug-atom.txt (+3/-3) lib/lp/bugs/stories/feeds/xx-bug-html.txt (+3/-3) lib/lp/bugs/stories/webservice/xx-bug.txt (+1/-0) lib/lp/code/doc/branch-notifications.txt (+3/-1) lib/lp/code/stories/branches/xx-private-branch-listings.txt (+2/-2) lib/lp/code/stories/codeimport/xx-codeimport-view.txt (+3/-3) lib/lp/code/stories/feeds/xx-branch-atom.txt (+2/-2) lib/lp/code/stories/sourcepackagerecipes/xx-recipe-listings.txt (+3/-3) lib/lp/code/stories/webservice/xx-code-import.txt (+1/-1) lib/lp/registry/browser/tests/distributionmirror-views.txt (+1/-0) lib/lp/registry/doc/distribution-mirror.txt (+3/-3) lib/lp/registry/stories/announcements/xx-announcements.txt (+1/-1) lib/lp/registry/stories/gpg-coc/xx-gpg-coc.txt (+1/-1) lib/lp/registry/stories/person/xx-person-rdf.txt (+1/-1) lib/lp/registry/stories/productrelease/xx-productrelease-delete.txt (+1/-0) lib/lp/services/database/doc/textsearching.txt (+1/-0) lib/lp/services/feeds/stories/xx-links.txt (+3/-3) lib/lp/soyuz/browser/tests/archive-views.txt (+1/-1) lib/lp/soyuz/browser/tests/distributionsourcepackagerelease-views.txt (+1/-1) lib/lp/soyuz/browser/tests/publishing-views.txt (+2/-1) lib/lp/soyuz/browser/tests/sourcepackage-views.txt (+1/-1) lib/lp/soyuz/doc/gina.txt (+4/-1) lib/lp/soyuz/doc/soyuz-upload.txt (+4/-1) lib/lp/soyuz/stories/distribution/xx-distribution-packages.txt (+2/-2) lib/lp/soyuz/stories/ppa/xx-ppa-files.txt (+2/-2) lib/lp/soyuz/stories/ppa/xx-ppa-navigation.txt (+1/-1) lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt (+2/-2) lib/lp/soyuz/stories/soyuz/xx-build-record.txt (+1/-1) lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt (+1/-1) lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt (+3/-2) lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt (+11/-8) lib/lp/soyuz/stories/soyuz/xx-packagepublishinghistory.txt (+4/-5) lib/lp/soyuz/stories/soyuz/xx-queue-pages-motu.txt (+1/-1) lib/lp/soyuz/stories/soyuz/xx-queue-pages.txt (+14/-14) lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt (+1/-1) lib/lp/soyuz/stories/webservice/xx-archive.txt (+12/-12) lib/lp/soyuz/stories/webservice/xx-binary-package-publishing.txt (+2/-0) lib/lp/soyuz/stories/webservice/xx-builds.txt (+3/-3) lib/lp/soyuz/stories/webservice/xx-packageset.txt (+10/-10) lib/lp/soyuz/stories/webservice/xx-source-package-publishing.txt (+3/-2) lib/lp/translations/doc/potemplate.txt (+1/-1) lib/lp/translations/stories/distroseries/xx-distroseries-language-packs.txt (+1/-1) lib/lp/translations/stories/importqueue/xx-translation-import-queue.txt (+1/-1) lib/lp/translations/stories/navigation-links/pofile.txt (+1/-1) lib/lp/translations/stories/navigation-links/pomsgset.txt (+2/-2) lib/lp/translations/stories/navigation-links/potemplate.txt (+1/-1) lib/lp/translations/stories/productseries/xx-productseries-translations.txt (+2/-1) lib/lp/translations/stories/standalone/xx-language.txt (+1/-1) lib/lp/translations/stories/standalone/xx-pofile-auto-alt-languages.txt (+3/-3) lib/lp/translations/stories/standalone/xx-pofile-translate-empty-strings-without-validation.txt (+1/-1) lib/lp/translations/stories/standalone/xx-pofile-translate-gettext-error-middle-page.txt (+1/-1) lib/lp/translations/stories/standalone/xx-pofile-translate-html-tags-escape.txt (+1/-1) lib/lp/translations/stories/standalone/xx-pofile-translate-needs-review-flags-preserved.txt (+1/-1) lib/lp/translations/stories/standalone/xx-pofile-translate-newlines-check.txt (+5/-5) lib/lp/translations/stories/standalone/xx-pofile-translate-performance.txt (+2/-2) lib/lp/translations/stories/standalone/xx-potemplate-export.txt (+2/-2) lib/lp/translations/stories/standalone/xx-series-templates.txt (+1/-1) lib/lp/translations/stories/standalone/xx-translation-credits.txt (+1/-1) lib/lp/translations/stories/translationgroups/xx-translationgroups.txt (+2/-2) lib/lp/translations/stories/translations/xx-translations.txt (+13/-13) lib/lp/translations/utilities/doc/gettext_mo_exporter.txt (+1/-1) lib/lp/translations/utilities/doc/gettext_po_exporter.txt (+1/-1) lib/lp/translations/utilities/doc/gettext_po_parser.txt (+7/-7) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cristian Gonzalez (community) | Approve | ||
Review via email: mp+407453@code.launchpad.net |
Commit message
Ignore various want line length errors in doctests
Description of the change
This covers cases where it isn't reasonable or practical to wrap the want lines, such as long URLs or wide tables.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | diff --git a/lib/lp/app/browser/doc/watermark.txt b/lib/lp/app/browser/doc/watermark.txt |
2 | index ef1a66d..7c792bb 100644 |
3 | --- a/lib/lp/app/browser/doc/watermark.txt |
4 | +++ b/lib/lp/app/browser/doc/watermark.txt |
5 | @@ -74,7 +74,7 @@ Any HTML in the context title will be escaped to avoid XSS vulnerabilities. |
6 | |
7 | >>> person = factory.makePerson( |
8 | ... displayname="Fubar<br/><script>alert('XSS')</script>") |
9 | - >>> print(get_hierarchy(person).heading()) |
10 | + >>> print(get_hierarchy(person).heading()) # noqa |
11 | <h...><a...>Fubar<br/><script>alert('XSS')</script></a></h...> |
12 | |
13 | |
14 | diff --git a/lib/lp/app/doc/displaying-paragraphs-of-text.txt b/lib/lp/app/doc/displaying-paragraphs-of-text.txt |
15 | index 9875fd8..7382553 100644 |
16 | --- a/lib/lp/app/doc/displaying-paragraphs-of-text.txt |
17 | +++ b/lib/lp/app/doc/displaying-paragraphs-of-text.txt |
18 | @@ -83,7 +83,7 @@ previous line. This aids in the display of code samples: |
19 | ... ' def currentCount(self, language=None):\n' |
20 | ... ' """See IRosettaStats."""\n' |
21 | ... ' return self.currentCount\n') |
22 | - >>> print(test_tales('foo/fmt:text-to-html', foo=text)) |
23 | + >>> print(test_tales('foo/fmt:text-to-html', foo=text)) # noqa |
24 | <p>This is a code sample written in Python.<br /> |
25 | def messageCount(self):<br /> |
26 | """See IRosettaStats."""<br /> |
27 | @@ -104,7 +104,7 @@ Testing a bunch of URL links. |
28 | ... '\n' |
29 | ... 'I have a Jabber account (jabber:foo@jabber.example.com)\n' |
30 | ... 'Foo Bar <mailto:foo.bar@example.net>') |
31 | - >>> print(test_tales('foo/fmt:text-to-html', foo=text)) |
32 | + >>> print(test_tales('foo/fmt:text-to-html', foo=text)) # noqa |
33 | <p><a rel="nofollow" href="https://launchpad.net/">https:/<wbr />/launchpad.<wbr />net/</a> is the new Launchpad site<br /> |
34 | <a rel="nofollow" href="http://example.com/something?foo=bar&hum=baz">http://<wbr />example.<wbr />com/something?<wbr />foo=bar&<wbr />hum=baz</a><br /> |
35 | You can check the PPC md5sums at <a rel="nofollow" href="ftp://ftp.ubuntu.com/ubuntu/dists/breezy/main/installer-powerpc/current/images/MD5SUMS">ftp://ftp.<wbr />ubuntu.<wbr />com/ubuntu/<wbr />dists/breezy/<wbr />main/installer-<wbr />powerpc/<wbr />current/<wbr />images/<wbr />MD5SUMS</a><br /> |
36 | @@ -159,7 +159,7 @@ fmt:text-to-html knows how to linkify URLs: |
37 | ... 'http://localhost?testing=[square-brackets-in-query]\n' |
38 | ... ) |
39 | |
40 | - >>> print(test_tales('foo/fmt:text-to-html', foo=text)) |
41 | + >>> print(test_tales('foo/fmt:text-to-html', foo=text)) # noqa |
42 | <p><a rel="nofollow" href="http://localhost:8086/bar/baz/foo.html">http://<wbr />localhost:<wbr />8086/bar/<wbr />baz/foo.<wbr />html</a><br /> |
43 | <a rel="nofollow" href="ftp://localhost:8086/bar/baz/foo.bar.html">ftp://localhost<wbr />:8086/bar/<wbr />baz/foo.<wbr />bar.html</a><br /> |
44 | <a rel="nofollow" href="sftp://localhost:8086/bar/baz/foo.bar.html">sftp://<wbr />localhost:<wbr />8086/bar/<wbr />baz/foo.<wbr />bar.html</a>.<br /> |
45 | @@ -432,21 +432,21 @@ After login, a link: |
46 | >>> getUtility(ILaunchBag).developer |
47 | True |
48 | |
49 | - >>> print(test_tales('foo/fmt:text-to-html', foo=text)) |
50 | + >>> print(test_tales('foo/fmt:text-to-html', foo=text)) # noqa |
51 | <p><a href="https://oops.canonical.com/oops/?oopsid=OOPS-38C23">OOPS-38C23</a></p> |
52 | |
53 | OOPS references can take a number of forms: |
54 | |
55 | >>> text = 'OOPS-38C23' |
56 | - >>> print(test_tales('foo/fmt:text-to-html', foo=text)) |
57 | + >>> print(test_tales('foo/fmt:text-to-html', foo=text)) # noqa |
58 | <p><a href="https://oops.canonical.com/oops/?oopsid=OOPS-38C23">OOPS-38C23</a></p> |
59 | |
60 | >>> text = 'OOPS-123abcdef' |
61 | - >>> print(test_tales('foo/fmt:text-to-html', foo=text)) |
62 | + >>> print(test_tales('foo/fmt:text-to-html', foo=text)) # noqa |
63 | <p><a href="https://oops.canonical.com/oops/?oopsid=OOPS-123abcdef">OOPS-123abcdef</a></p> |
64 | |
65 | >>> text = 'OOPS-abcdef123' |
66 | - >>> print(test_tales('foo/fmt:text-to-html', foo=text)) |
67 | + >>> print(test_tales('foo/fmt:text-to-html', foo=text)) # noqa |
68 | <p><a href="https://oops.canonical.com/oops/?oopsid=OOPS-abcdef123">OOPS-abcdef123</a></p> |
69 | |
70 | If the configuration value doesn't end with a slash, we won't add one. This |
71 | diff --git a/lib/lp/app/doc/tales.txt b/lib/lp/app/doc/tales.txt |
72 | index e5d2284..8316cd9 100644 |
73 | --- a/lib/lp/app/doc/tales.txt |
74 | +++ b/lib/lp/app/doc/tales.txt |
75 | @@ -544,7 +544,7 @@ Git references |
76 | For Git references, fmt:link links to the reference page. |
77 | |
78 | >>> [ref] = factory.makeGitRefs(repository=repository, paths=[u"master"]) |
79 | - >>> print(test_tales("ref/fmt:link", ref=ref)) |
80 | + >>> print(test_tales("ref/fmt:link", ref=ref)) # noqa |
81 | <a href=".../~eric/fooix/+git/bar/+ref/master">~eric/fooix/+git/bar:master</a> |
82 | |
83 | |
84 | diff --git a/lib/lp/app/doc/textformatting.txt b/lib/lp/app/doc/textformatting.txt |
85 | index bcbdc00..3d9dd40 100644 |
86 | --- a/lib/lp/app/doc/textformatting.txt |
87 | +++ b/lib/lp/app/doc/textformatting.txt |
88 | @@ -297,7 +297,7 @@ The callable's argument is the pre-wrapped paragraph. |
89 | ... return paragraph.startswith('http://') |
90 | |
91 | >>> body = wrapper.format(text, force_wrap=True, wrap_func=nowrap) |
92 | - >>> print(body) |
93 | + >>> print(body) # noqa |
94 | Hello Scarlett O'Hara, |
95 | <BLANKLINE> |
96 | frankly-my-dear-i-dont-give-a-damn has a new message requiring your |
97 | diff --git a/lib/lp/blueprints/stories/blueprints/xx-creation.txt b/lib/lp/blueprints/stories/blueprints/xx-creation.txt |
98 | index 128b233..35041a3 100644 |
99 | --- a/lib/lp/blueprints/stories/blueprints/xx-creation.txt |
100 | +++ b/lib/lp/blueprints/stories/blueprints/xx-creation.txt |
101 | @@ -185,7 +185,7 @@ Users can also follow the textual "Register a blueprint" link: |
102 | |
103 | >>> for tag in find_tags_by_class( |
104 | ... user_browser.contents, 'menu-link-new'): |
105 | - ... print(tag) |
106 | + ... print(tag) # noqa |
107 | <a class="menu-link-new..." |
108 | href="http://blueprints.launchpad.test/sprints/futurista/+addspec">Register |
109 | a blueprint</a> |
110 | diff --git a/lib/lp/blueprints/stories/blueprints/xx-distrorelease.txt b/lib/lp/blueprints/stories/blueprints/xx-distrorelease.txt |
111 | index d96e9c2..19ceace 100644 |
112 | --- a/lib/lp/blueprints/stories/blueprints/xx-distrorelease.txt |
113 | +++ b/lib/lp/blueprints/stories/blueprints/xx-distrorelease.txt |
114 | @@ -57,7 +57,7 @@ redirected back to the spec page when we are done. |
115 | >>> user_browser.open( |
116 | ... 'http://blueprints.launchpad.test/ubuntu/+spec/' |
117 | ... 'media-integrity-check/+setdistroseries') |
118 | - >>> user_browser.url |
119 | + >>> user_browser.url # noqa |
120 | 'http://blueprints.launchpad.test/ubuntu/+spec/media-integrity-check/+setdistroseries' |
121 | >>> user_browser.getControl('Goal').value = ['5'] |
122 | >>> user_browser.getControl('Continue').click() |
123 | diff --git a/lib/lp/blueprints/stories/blueprints/xx-editing.txt b/lib/lp/blueprints/stories/blueprints/xx-editing.txt |
124 | index 8c9009b..b5b3e2c 100644 |
125 | --- a/lib/lp/blueprints/stories/blueprints/xx-editing.txt |
126 | +++ b/lib/lp/blueprints/stories/blueprints/xx-editing.txt |
127 | @@ -11,13 +11,13 @@ First, we need to load the +edit page. |
128 | >>> spec_path = '/firefox/+spec/extension-manager-upgrades' |
129 | >>> browser.open(features_domain + spec_path) |
130 | >>> browser.getLink('Change details').click() |
131 | - >>> browser.url |
132 | + >>> browser.url # noqa |
133 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades/+edit' |
134 | |
135 | The page links back to the blueprint page, in case we change our minds. |
136 | |
137 | >>> back_link = browser.getLink('Extension Manager Upgrades') |
138 | - >>> back_link.url |
139 | + >>> back_link.url # noqa |
140 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades' |
141 | |
142 | Launchpad won't let us use an URL already used in another blueprint. |
143 | @@ -61,24 +61,24 @@ specification home page. |
144 | >>> browser.getControl('Summary').value = summary |
145 | >>> browser.getControl('Status Whiteboard').value = 'XXX' |
146 | >>> browser.getControl('Change').click() |
147 | - >>> browser.url |
148 | + >>> browser.url # noqa |
149 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades' |
150 | |
151 | Also, we would like to assign these to someone other than Carlos, and we |
152 | would also like to have a drafter associated with it. |
153 | |
154 | >>> browser.getLink(url='+people').click() |
155 | - >>> browser.url |
156 | + >>> browser.url # noqa |
157 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades/+people' |
158 | >>> back_link = browser.getLink('Extension Manager System Upgrades') |
159 | - >>> back_link.url |
160 | + >>> back_link.url # noqa |
161 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades' |
162 | >>> browser.getControl('Assignee').value = 'tsukimi@quaqua.net' |
163 | >>> browser.getControl('Drafter').value = 'daf@canonical.com' |
164 | >>> browser.getControl('Approver').value = 'stuart.bishop@canonical.com' |
165 | >>> browser.getControl('Status Whiteboard').value = 'YYY' |
166 | >>> browser.getControl('Change').click() |
167 | - >>> browser.url |
168 | + >>> browser.url # noqa |
169 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades' |
170 | |
171 | Finally, we should be able to change the status metadata (definition status, |
172 | @@ -86,13 +86,13 @@ implementation status, estimated man days etc) of the specification. |
173 | |
174 | >>> browser.getLink(url='+status').click() |
175 | >>> back_link = browser.getLink('Extension Manager System Upgrades') |
176 | - >>> back_link.url |
177 | + >>> back_link.url # noqa |
178 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades' |
179 | >>> browser.getControl('Definition Status').value = ['DRAFT'] |
180 | >>> browser.getControl('Implementation Status').value = ['SLOW'] |
181 | >>> browser.getControl('Status Whiteboard').value = 'XXX' |
182 | >>> browser.getControl('Change').click() |
183 | - >>> browser.url |
184 | + >>> browser.url # noqa |
185 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades' |
186 | |
187 | Any logged in user can edit a specification whiteboard. |
188 | @@ -143,7 +143,7 @@ But an administrator can. |
189 | ... 'http://blueprints.launchpad.test/kubuntu/' |
190 | ... '+spec/krunch-desktop-plan') |
191 | >>> admin_browser.getLink(url='+priority').click() |
192 | - >>> admin_browser.url |
193 | + >>> admin_browser.url # noqa |
194 | 'http://blueprints.launchpad.test/kubuntu/+spec/krunch-desktop-plan/+priority' |
195 | >>> back_link = admin_browser.getLink('The Krunch Desktop Plan') |
196 | >>> back_link.url |
197 | diff --git a/lib/lp/blueprints/stories/blueprints/xx-superseding.txt b/lib/lp/blueprints/stories/blueprints/xx-superseding.txt |
198 | index 9e4910a..fe83bdd 100644 |
199 | --- a/lib/lp/blueprints/stories/blueprints/xx-superseding.txt |
200 | +++ b/lib/lp/blueprints/stories/blueprints/xx-superseding.txt |
201 | @@ -26,9 +26,9 @@ The page contains a link back to the blueprint, in case we change our |
202 | mind. |
203 | |
204 | >>> back_link = browser.getLink('Extension Manager Upgrades') |
205 | - >>> back_link.url |
206 | + >>> back_link.url # noqa |
207 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades' |
208 | - >>> browser.getLink('Cancel').url |
209 | + >>> browser.getLink('Cancel').url # noqa |
210 | 'http://blueprints.launchpad.test/firefox/+spec/extension-manager-upgrades' |
211 | |
212 | Next, we will POST to that form, setting the spec which supersedes this one: |
213 | diff --git a/lib/lp/blueprints/stories/standalone/xx-informational-blueprints.txt b/lib/lp/blueprints/stories/standalone/xx-informational-blueprints.txt |
214 | index 5e653eb..d37db9a 100644 |
215 | --- a/lib/lp/blueprints/stories/standalone/xx-informational-blueprints.txt |
216 | +++ b/lib/lp/blueprints/stories/standalone/xx-informational-blueprints.txt |
217 | @@ -29,7 +29,7 @@ We register a new blueprint. |
218 | We then set the blueprint's implementation status to ''informational''. |
219 | |
220 | >>> user_browser.getLink(url='+status').click() |
221 | - >>> user_browser.url |
222 | + >>> user_browser.url # noqa |
223 | 'http://blueprints.launchpad.test/jokosher/+spec/informational-blueprint/+status' |
224 | >>> user_browser.getControl('Implementation Status').value = ( |
225 | ... ['INFORMATIONAL']) |
226 | diff --git a/lib/lp/bugs/browser/tests/bugtask-search-views.txt b/lib/lp/bugs/browser/tests/bugtask-search-views.txt |
227 | index 3645cdf..48d3458 100644 |
228 | --- a/lib/lp/bugs/browser/tests/bugtask-search-views.txt |
229 | +++ b/lib/lp/bugs/browser/tests/bugtask-search-views.txt |
230 | @@ -460,6 +460,5 @@ get_buglisting_search_filter_url(). |
231 | |
232 | >>> print(get_buglisting_search_filter_url( |
233 | ... status_upstream='open_upstream', status='NEW', |
234 | - ... importance='WISHLIST', assignee='mark')) |
235 | + ... importance='WISHLIST', assignee='mark')) # noqa |
236 | +bugs?search=Search&field.assignee=mark&field.importance=WISHLIST&field.status=NEW&field.status_upstream=open_upstream |
237 | - |
238 | diff --git a/lib/lp/bugs/browser/tests/person-bug-views.txt b/lib/lp/bugs/browser/tests/person-bug-views.txt |
239 | index 5f1d5ab..24be807 100644 |
240 | --- a/lib/lp/bugs/browser/tests/person-bug-views.txt |
241 | +++ b/lib/lp/bugs/browser/tests/person-bug-views.txt |
242 | @@ -192,7 +192,7 @@ render the overview report. |
243 | |
244 | >>> print(ubuntu_firefox_bugcounts['package_name']) |
245 | mozilla-firefox in Ubuntu |
246 | - >>> print(ubuntu_firefox_bugcounts['package_search_url']) |
247 | + >>> print(ubuntu_firefox_bugcounts['package_search_url']) # noqa |
248 | http://bugs.launchpad.test/ubuntu/+source/mozilla-firefox?field.status=New&field.status=Incomplete&field.status=Confirmed&field.status=Triaged&field.status=In+Progress&field.status=Fix+Committed&search=Search |
249 | |
250 | >>> print(ubuntu_firefox_bugcounts['open_bugs_count']) |
251 | @@ -204,13 +204,13 @@ render the overview report. |
252 | >>> print(ubuntu_firefox_bugcounts['inprogress_bugs_count']) |
253 | 0 |
254 | |
255 | - >>> print(ubuntu_firefox_bugcounts['open_bugs_url']) |
256 | + >>> print(ubuntu_firefox_bugcounts['open_bugs_url']) # noqa |
257 | http://bugs.launchpad.test/ubuntu/+source/mozilla-firefox?field.status=New&field.status=Incomplete&field.status=Confirmed&field.status=Triaged&field.status=In+Progress&field.status=Fix+Committed&search=Search |
258 | - >>> print(ubuntu_firefox_bugcounts['critical_bugs_url']) |
259 | + >>> print(ubuntu_firefox_bugcounts['critical_bugs_url']) # noqa |
260 | http://bugs.launchpad.test/ubuntu/+source/mozilla-firefox?field.importance=Critical&field.status=New&field.status=Incomplete&field.status=Confirmed&field.status=Triaged&field.status=In+Progress&field.status=Fix+Committed&search=Search |
261 | - >>> print(ubuntu_firefox_bugcounts['unassigned_bugs_url']) |
262 | + >>> print(ubuntu_firefox_bugcounts['unassigned_bugs_url']) # noqa |
263 | http://bugs.launchpad.test/ubuntu/+source/mozilla-firefox?assignee_option=none&field.status=New&field.status=Incomplete&field.status=Confirmed&field.status=Triaged&field.status=In+Progress&field.status=Fix+Committed&search=Search |
264 | - >>> print(ubuntu_firefox_bugcounts['inprogress_bugs_url']) |
265 | + >>> print(ubuntu_firefox_bugcounts['inprogress_bugs_url']) # noqa |
266 | http://bugs.launchpad.test/ubuntu/+source/mozilla-firefox?field.status=In+Progress&search=Search |
267 | |
268 | The total number of bugs, broken down in the same ways as the package |
269 | diff --git a/lib/lp/bugs/doc/bugnotification-email.txt b/lib/lp/bugs/doc/bugnotification-email.txt |
270 | index 268d2a9..bc835c9 100644 |
271 | --- a/lib/lp/bugs/doc/bugnotification-email.txt |
272 | +++ b/lib/lp/bugs/doc/bugnotification-email.txt |
273 | @@ -386,6 +386,7 @@ Adding an attachment will generate a notification that looks as follows: |
274 | ... notification = change.getBugNotification() |
275 | ... print(notification['text']) #doctest: -NORMALIZE_WHITESPACE |
276 | ... print("-----------------------------") |
277 | + ... # noqa |
278 | ** Attachment added: "A screenshot of the problem" |
279 | http://bugs.launchpad.test/bugs/.../+attachment/.../+files/screenshot.png |
280 | ----------------------------- |
281 | @@ -401,6 +402,7 @@ Removing an attachment generates a notification, too. |
282 | ... notification = change.getBugNotification() |
283 | ... print(notification['text']) #doctest: -NORMALIZE_WHITESPACE |
284 | ... print("-----------------------------") |
285 | + ... # noqa |
286 | ** Attachment removed: "A screenshot of the problem" |
287 | http://bugs.launchpad.test/bugs/.../+attachment/.../+files/screenshot.png |
288 | ----------------------------- |
289 | diff --git a/lib/lp/bugs/doc/bugnotification-sending.txt b/lib/lp/bugs/doc/bugnotification-sending.txt |
290 | index 8d947fb..a3d7b8f 100644 |
291 | --- a/lib/lp/bugs/doc/bugnotification-sending.txt |
292 | +++ b/lib/lp/bugs/doc/bugnotification-sending.txt |
293 | @@ -273,7 +273,7 @@ lp/bugs/tests/test_bugnotification.py), and not demonstrated here. |
294 | Another thing worth noting is that there's a blank line before the |
295 | signature, and the signature marker has a trailing space. |
296 | |
297 | - >>> six.ensure_str(message.get_payload(decode=True)).splitlines() |
298 | + >>> six.ensure_str(message.get_payload(decode=True)).splitlines() # noqa |
299 | [..., |
300 | '', |
301 | '-- ', |
302 | diff --git a/lib/lp/bugs/stories/bug-also-affects/xx-bug-also-affects.txt b/lib/lp/bugs/stories/bug-also-affects/xx-bug-also-affects.txt |
303 | index 8d5d055..67bf508 100644 |
304 | --- a/lib/lp/bugs/stories/bug-also-affects/xx-bug-also-affects.txt |
305 | +++ b/lib/lp/bugs/stories/bug-also-affects/xx-bug-also-affects.txt |
306 | @@ -230,7 +230,7 @@ We cannot allow proprietary bugs to affect more than one pillar. |
307 | >>> browser.getLink(url='+choose-affected-product').click() |
308 | >>> browser.getControl(name='field.product').value = other_product_name |
309 | >>> browser.getControl('Continue').click() |
310 | - >>> print(browser.url) |
311 | + >>> print(browser.url) # noqa |
312 | http://bugs.launchpad.test/proprietary-product/+bug/.../+choose-affected-product |
313 | |
314 | >>> print_feedback_messages(browser.contents) |
315 | @@ -267,7 +267,7 @@ If this wasn't what we intended, we can go back to choose another |
316 | product, though. |
317 | |
318 | >>> user_browser.getLink('Choose another project').click() |
319 | - >>> print(user_browser.url) |
320 | + >>> print(user_browser.url) # noqa |
321 | http://bugs.launchpad.test/ubuntu/+source/evolution/+bug/6/+choose-affected-product?field.product=evolution |
322 | |
323 | >>> user_browser.getControl('Project').value |
324 | diff --git a/lib/lp/bugs/stories/bugattachments/xx-attachments-to-bug-report.txt b/lib/lp/bugs/stories/bugattachments/xx-attachments-to-bug-report.txt |
325 | index 9016ea8..bdbe665 100644 |
326 | --- a/lib/lp/bugs/stories/bugattachments/xx-attachments-to-bug-report.txt |
327 | +++ b/lib/lp/bugs/stories/bugattachments/xx-attachments-to-bug-report.txt |
328 | @@ -53,7 +53,7 @@ displayed as the bug report). |
329 | (8 bytes, |
330 | text/plain) |
331 | >>> link = browser.getLink('sample data') |
332 | - >>> print(link.url) |
333 | + >>> print(link.url) # noqa |
334 | http://bugs.launchpad.test/jokosher/+bug/11/+attachment/.../+files/test.txt |
335 | >>> print(comment_0.find('a', text='Edit')) |
336 | <a class="sprite edit action-icon" |
337 | diff --git a/lib/lp/bugs/stories/bugattachments/xx-bugattachments.txt b/lib/lp/bugs/stories/bugattachments/xx-bugattachments.txt |
338 | index c691592..ec8e157 100644 |
339 | --- a/lib/lp/bugs/stories/bugattachments/xx-bugattachments.txt |
340 | +++ b/lib/lp/bugs/stories/bugattachments/xx-bugattachments.txt |
341 | @@ -113,7 +113,7 @@ the flag "this attachment is a patch"... |
342 | |
343 | ...we are redirected to a page... |
344 | |
345 | - >>> user_browser.url |
346 | + >>> user_browser.url # noqa |
347 | 'http://bugs.launchpad.test/firefox/+bug/1/+attachment/.../+confirm-is-patch' |
348 | |
349 | ...where we see a message that we should double-check if this file |
350 | @@ -169,7 +169,7 @@ if we set the "patch" flag for this attachment... |
351 | ...we are redirected to the page where we must confirm that this attachment |
352 | is indeed a patch. |
353 | |
354 | - >>> user_browser.url |
355 | + >>> user_browser.url # noqa |
356 | 'http://bugs.launchpad.test/firefox/+bug/1/+attachment/.../+confirm-is-patch' |
357 | |
358 | ...where we see a message asking us if we really ant to declare this file |
359 | @@ -301,7 +301,7 @@ The server now checks if the attachment looks like a patch. In this case, |
360 | is doesn't, and we get the edit page again, with a message asking us if |
361 | the attachment should indeed be labeled as a patch |
362 | |
363 | - >>> user_browser.url |
364 | + >>> user_browser.url # noqa |
365 | 'http://bugs.launchpad.test/firefox/+bug/1/+attachment/.../+confirm-is-patch' |
366 | |
367 | >>> print(extract_text(find_tags_by_class( |
368 | diff --git a/lib/lp/bugs/stories/bugs/xx-bug-text-pages.txt b/lib/lp/bugs/stories/bugs/xx-bug-text-pages.txt |
369 | index a09fca1..f4e5a39 100644 |
370 | --- a/lib/lp/bugs/stories/bugs/xx-bug-text-pages.txt |
371 | +++ b/lib/lp/bugs/stories/bugs/xx-bug-text-pages.txt |
372 | @@ -231,6 +231,7 @@ The only differences are the download URLs of bug attachments: |
373 | ... if bug_lines[line_no] != bug_task_lines[line_no]: |
374 | ... print(bug_lines[line_no]) |
375 | ... print(bug_task_lines[line_no]) |
376 | + ... # noqa |
377 | http://bugs.launchpad.test/bugs/1/+attachment/.../+files/file_a.txt text/html |
378 | http://bugs.launchpad.test/firefox/+bug/.../+files/file_a.txt text/html |
379 | http://bugs.launchpad.test/bugs/1/.../+files/file%20with%20space.txt... |
380 | diff --git a/lib/lp/bugs/stories/bugs/xx-incomplete-bugs.txt b/lib/lp/bugs/stories/bugs/xx-incomplete-bugs.txt |
381 | index 0e43b2d..7954298 100644 |
382 | --- a/lib/lp/bugs/stories/bugs/xx-incomplete-bugs.txt |
383 | +++ b/lib/lp/bugs/stories/bugs/xx-incomplete-bugs.txt |
384 | @@ -283,7 +283,7 @@ A default search turns that bug up as well. |
385 | |
386 | >>> user_browser.open('http://bugs.launchpad.test/jokosher') |
387 | >>> user_browser.getControl('Search', index=0).click() |
388 | - >>> print(user_browser.url) |
389 | + >>> print(user_browser.url) # noqa |
390 | http://bugs.launchpad.test/jokosher/+bugs?...&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE... |
391 | >>> ('<a class="bugtitle" ' |
392 | ... 'href="http://bugs.launchpad.test/jokosher/+bug/11">' in |
393 | diff --git a/lib/lp/bugs/stories/bugtask-management/xx-bugtask-edit-forms.txt b/lib/lp/bugs/stories/bugtask-management/xx-bugtask-edit-forms.txt |
394 | index dc57806..0fd1188 100644 |
395 | --- a/lib/lp/bugs/stories/bugtask-management/xx-bugtask-edit-forms.txt |
396 | +++ b/lib/lp/bugs/stories/bugtask-management/xx-bugtask-edit-forms.txt |
397 | @@ -30,7 +30,7 @@ respective bug task. |
398 | ... |
399 | zope.testbrowser.browser.LinkNotFoundError |
400 | |
401 | - >>> print(admin_browser.getLink('Low', index=1).url) |
402 | + >>> print(admin_browser.getLink('Low', index=1).url) # noqa |
403 | http://bugs.launchpad.test/debian/+source/mozilla-firefox/+bug/1/+editstatus |
404 | >>> print(admin_browser.getLink('New', index=1).url) |
405 | http://bugs...test/ubuntu/+source/mozilla-firefox/+bug/1/+editstatus |
406 | diff --git a/lib/lp/bugs/stories/bugtask-management/xx-change-milestone.txt b/lib/lp/bugs/stories/bugtask-management/xx-change-milestone.txt |
407 | index b612e76..148dac5 100644 |
408 | --- a/lib/lp/bugs/stories/bugtask-management/xx-change-milestone.txt |
409 | +++ b/lib/lp/bugs/stories/bugtask-management/xx-change-milestone.txt |
410 | @@ -84,7 +84,7 @@ They target bug #1 to milestone 5.04-rc1 for Ubuntu. |
411 | |
412 | >>> admin_browser.open('http://launchpad.test/firefox/+bug/1') |
413 | >>> table = find_tag_by_id(admin_browser.contents, 'affected-software') |
414 | - >>> print(extract_text(table)) |
415 | + >>> print(extract_text(table)) # noqa |
416 | Affects Status Importance Assigned to Milestone |
417 | ... Mozilla Firefox ... New Low Mark Shuttleworth ... 1.0 |
418 | ... |
419 | @@ -99,7 +99,7 @@ They target bug #1 to milestone 5.04-rc1 for Ubuntu. |
420 | >>> milestone_control.displayValue = ['Ubuntu 5.04.rc1'] |
421 | >>> admin_browser.getControl('Save Changes', index=3).click() |
422 | >>> table = find_tag_by_id(admin_browser.contents, 'affected-software') |
423 | - >>> print(extract_text(table)) |
424 | + >>> print(extract_text(table)) # noqa |
425 | Affects Status Importance Assigned to Milestone |
426 | ... Mozilla Firefox ... New Low Mark Shuttleworth ... 1.0 |
427 | ... |
428 | diff --git a/lib/lp/bugs/stories/feeds/xx-bug-atom.txt b/lib/lp/bugs/stories/feeds/xx-bug-atom.txt |
429 | index 2d615ed..d58ea15 100644 |
430 | --- a/lib/lp/bugs/stories/feeds/xx-bug-atom.txt |
431 | +++ b/lib/lp/bugs/stories/feeds/xx-bug-atom.txt |
432 | @@ -527,16 +527,16 @@ to True. |
433 | >>> soup = BeautifulSoup( |
434 | ... browser.contents, 'xml', parse_only=SoupStrainer('id')) |
435 | >>> feed_id = extract_text(soup.find('id')) |
436 | - >>> print(feed_id) |
437 | + >>> print(feed_id) # noqa |
438 | tag:launchpad.net,2008:/+bugs.atom?field.scope.target=&field.scope=all&field.searchtext=&search=Search+Bug+Reports |
439 | |
440 | >>> from lp.services.webapp.escaping import html_escape |
441 | - >>> print(html_escape(browser.url)) |
442 | + >>> print(html_escape(browser.url)) # noqa |
443 | http://feeds.launchpad.test/bugs/+bugs.atom?field.scope.target=&field.scope=all&field.searchtext=&search=Search+Bug+Reports |
444 | |
445 | >>> self_links = parse_links(browser.contents, 'self') |
446 | >>> for link in self_links: |
447 | - ... print(link) |
448 | + ... print(link) # noqa |
449 | <link href="http://feeds.launchpad.test/bugs/+bugs.atom?field.scope.target=&field.scope=all&field.searchtext=&search=Search+Bug+Reports" rel="self"/> |
450 | |
451 | >>> entries = parse_entries(browser.contents) |
452 | diff --git a/lib/lp/bugs/stories/feeds/xx-bug-html.txt b/lib/lp/bugs/stories/feeds/xx-bug-html.txt |
453 | index 510e91a..a2847f0 100644 |
454 | --- a/lib/lp/bugs/stories/feeds/xx-bug-html.txt |
455 | +++ b/lib/lp/bugs/stories/feeds/xx-bug-html.txt |
456 | @@ -52,7 +52,7 @@ the bug itself. |
457 | ... 'show_column=bugtargetdisplayname') |
458 | >>> browser.title |
459 | 'Bugs in Jokosher' |
460 | - >>> browser.url |
461 | + >>> browser.url # noqa |
462 | 'http://feeds.launchpad.test/jokosher/latest-bugs.html?show_column=bugtargetdisplayname' |
463 | |
464 | >>> entries = parse_entries(browser.contents) |
465 | @@ -79,7 +79,7 @@ as the latest bugs feed for a product. |
466 | ... 'show_column=bugtargetdisplayname') |
467 | >>> browser.title |
468 | 'Bugs in The Mozilla Project' |
469 | - >>> browser.url |
470 | + >>> browser.url # noqa |
471 | 'http://feeds.launchpad.test/mozilla/latest-bugs.html?show_column=bugtargetdisplayname' |
472 | |
473 | >>> entries = parse_entries(browser.contents) |
474 | @@ -161,7 +161,7 @@ This feed gets the latest bugs reported against any target. |
475 | ... 'show_column=bugtargetdisplayname') |
476 | >>> browser.title |
477 | 'Launchpad bugs' |
478 | - >>> browser.url |
479 | + >>> browser.url # noqa |
480 | 'http://feeds.launchpad.test/bugs/latest-bugs.html?show_column=bugtargetdisplayname' |
481 | |
482 | >>> entries = parse_entries(browser.contents) |
483 | diff --git a/lib/lp/bugs/stories/webservice/xx-bug.txt b/lib/lp/bugs/stories/webservice/xx-bug.txt |
484 | index dcd2665..b1b25d0 100644 |
485 | --- a/lib/lp/bugs/stories/webservice/xx-bug.txt |
486 | +++ b/lib/lp/bugs/stories/webservice/xx-bug.txt |
487 | @@ -563,6 +563,7 @@ distribution. |
488 | >>> print(webservice.named_post( |
489 | ... distro_bugtask_path, 'transitionToTarget', |
490 | ... target=webservice.getAbsoluteUrl('/ubuntu/+source/alsa-utils'))) |
491 | + ... # noqa |
492 | HTTP/1.1 301 Moved Permanently |
493 | ... |
494 | Location: http://api.launchpad.test/beta/ubuntu/+source/alsa-utils/+bug/... |
495 | diff --git a/lib/lp/code/doc/branch-notifications.txt b/lib/lp/code/doc/branch-notifications.txt |
496 | index d59000b..c8ff6d5 100644 |
497 | --- a/lib/lp/code/doc/branch-notifications.txt |
498 | +++ b/lib/lp/code/doc/branch-notifications.txt |
499 | @@ -66,7 +66,9 @@ also sends the email to the list of recipients. |
500 | name12 |
501 | >>> notification_body = six.ensure_text( |
502 | ... branch_notification.get_payload(decode=True)) |
503 | - >>> print(notification_body) #doctest: -NORMALIZE_WHITESPACE |
504 | + >>> print(notification_body) |
505 | + ... # noqa |
506 | + ... # doctest: -NORMALIZE_WHITESPACE |
507 | The contents. |
508 | <BLANKLINE> |
509 | -- |
510 | diff --git a/lib/lp/code/stories/branches/xx-private-branch-listings.txt b/lib/lp/code/stories/branches/xx-private-branch-listings.txt |
511 | index a1fbbe3..c775877 100644 |
512 | --- a/lib/lp/code/stories/branches/xx-private-branch-listings.txt |
513 | +++ b/lib/lp/code/stories/branches/xx-private-branch-listings.txt |
514 | @@ -81,7 +81,7 @@ developer. |
515 | |
516 | >>> landscape_dev_browser = setupBrowser( |
517 | ... auth='Basic test@canonical.com:test') |
518 | - >>> print_recently_registered_branches(landscape_dev_browser) |
519 | + >>> print_recently_registered_branches(landscape_dev_browser) # noqa |
520 | <BLANKLINE> |
521 | ...~name12/landscape/feature-x...<span...class="sprite private"... |
522 | ...~landscape-developers/landscape/trunk...<span...class="sprite private"... |
523 | @@ -91,7 +91,7 @@ developer. |
524 | |
525 | Launchpad administrators are able to see all private branches. |
526 | |
527 | - >>> print_recently_registered_branches(admin_browser) |
528 | + >>> print_recently_registered_branches(admin_browser) # noqa |
529 | <BLANKLINE> |
530 | ...~no-priv/landscape/testing-branch...<span...class="sprite private"... |
531 | ...~name12/landscape/feature-x...<span...class="sprite private"... |
532 | diff --git a/lib/lp/code/stories/codeimport/xx-codeimport-view.txt b/lib/lp/code/stories/codeimport/xx-codeimport-view.txt |
533 | index 8d36956..aea1b2c 100644 |
534 | --- a/lib/lp/code/stories/codeimport/xx-codeimport-view.txt |
535 | +++ b/lib/lp/code/stories/codeimport/xx-codeimport-view.txt |
536 | @@ -88,7 +88,7 @@ imports appear again. |
537 | >>> table = find_tag_by_id(browser.contents, 'code-import-listing') |
538 | >>> rows = [extract_text(tr) for tr in table('tr')] |
539 | >>> for row in rows: |
540 | - ... print(row) |
541 | + ... print(row) # noqa |
542 | Import Created Source type Target type Location Status |
543 | ~vcs-imports/gnome-terminal/import 2007-... Subversion via ... Bazaar http://sv... Reviewed |
544 | ~vcs-imports/evolution/import 2007-... Concurrent Vers... Bazaar :pserver:... Pending Review |
545 | @@ -105,7 +105,7 @@ We can also filter by source type. |
546 | >>> table = find_tag_by_id(browser.contents, 'code-import-listing') |
547 | >>> rows = [extract_text(tr) for tr in table('tr')] |
548 | >>> for row in rows: |
549 | - ... print(row) |
550 | + ... print(row) # noqa |
551 | Import Created Source type Target type Location Status |
552 | ~vcs-imports/evolution/import 2007-... Concurrent Vers... Bazaar :pserver:... Pending Review |
553 | |
554 | @@ -120,7 +120,7 @@ We can also filter by source type. |
555 | >>> table = find_tag_by_id(browser.contents, 'code-import-listing') |
556 | >>> rows = [extract_text(tr) for tr in table('tr')] |
557 | >>> for row in rows: |
558 | - ... print(row) |
559 | + ... print(row) # noqa |
560 | Import Created Source type Target type Location Status |
561 | ~name12/gnome-terminal/+git/gnome-terminal ... Git Git git://git... Reviewed |
562 | ~name12/evolution/+git/evolution ... Git Git https://g... Reviewed |
563 | diff --git a/lib/lp/code/stories/feeds/xx-branch-atom.txt b/lib/lp/code/stories/feeds/xx-branch-atom.txt |
564 | index 45e545c..89baa8e 100644 |
565 | --- a/lib/lp/code/stories/feeds/xx-branch-atom.txt |
566 | +++ b/lib/lp/code/stories/feeds/xx-branch-atom.txt |
567 | @@ -234,10 +234,10 @@ own <id>, which in the case of a single branch feed will be identical. |
568 | ... browser.contents, 'xml', parse_only=SoupStrainer('id')) |
569 | >>> ids = parse_ids(browser.contents) |
570 | >>> for id_ in ids: |
571 | - ... print(id_) |
572 | + ... print(id_) # noqa |
573 | <id>tag:launchpad.net,2006-10-16:/code/~mark/firefox/release--0.9.1</id> |
574 | <id>tag:launchpad.net,2005-03-09:/code/~mark/firefox/release--0.9.1/revision/1</id> |
575 | - >>> print_parse_links(browser) |
576 | + >>> print_parse_links(browser) # noqa |
577 | <link href="http://feeds.launchpad.test/~mark/firefox/release--0.9.1/branch.atom" rel="self"/> |
578 | >>> strainer = SoupStrainer('updated') |
579 | >>> updated_dates = [ |
580 | diff --git a/lib/lp/code/stories/sourcepackagerecipes/xx-recipe-listings.txt b/lib/lp/code/stories/sourcepackagerecipes/xx-recipe-listings.txt |
581 | index a1876cd..60f0624 100644 |
582 | --- a/lib/lp/code/stories/sourcepackagerecipes/xx-recipe-listings.txt |
583 | +++ b/lib/lp/code/stories/sourcepackagerecipes/xx-recipe-listings.txt |
584 | @@ -49,7 +49,7 @@ read "3 recipes." Let's click through. |
585 | |
586 | >>> nopriv_browser.open(branch_url) |
587 | >>> nopriv_browser.getLink('3 recipes').click() |
588 | - >>> print(nopriv_browser.url) |
589 | + >>> print(nopriv_browser.url) # noqa |
590 | http://code.launchpad.test/~person-name.../product-name.../branch.../+recipes |
591 | |
592 | The "Base Source" column should not be shown. |
593 | @@ -97,7 +97,7 @@ should now read "4 recipes." Let's click through. |
594 | |
595 | >>> nopriv_browser.open(repository_url) |
596 | >>> nopriv_browser.getLink('4 recipes').click() |
597 | - >>> print(nopriv_browser.url) |
598 | + >>> print(nopriv_browser.url) # noqa |
599 | http://code.launchpad.test/~person-name.../product-name.../+git/gitrepository.../+recipes |
600 | |
601 | The "Base Source" column should not be shown. |
602 | @@ -124,7 +124,7 @@ listed. |
603 | >>> with GitHostingFixture(): |
604 | ... nopriv_browser.open(ref1_url) |
605 | >>> nopriv_browser.getLink('2 recipes').click() |
606 | - >>> print(nopriv_browser.url) |
607 | + >>> print(nopriv_browser.url) # noqa |
608 | http://code.launchpad.test/~person-name.../product-name.../+git/gitrepository.../+ref/a/+recipes |
609 | |
610 | >>> print_recipe_listing_head(nopriv_browser) |
611 | diff --git a/lib/lp/code/stories/webservice/xx-code-import.txt b/lib/lp/code/stories/webservice/xx-code-import.txt |
612 | index c8dd559..62a2056 100644 |
613 | --- a/lib/lp/code/stories/webservice/xx-code-import.txt |
614 | +++ b/lib/lp/code/stories/webservice/xx-code-import.txt |
615 | @@ -269,7 +269,7 @@ We can create a Git-to-Git import targetting a distribution source package. |
616 | >>> location = response.getHeader('Location') |
617 | >>> response = import_webservice.get(location) |
618 | >>> representation = response.jsonBody() |
619 | - >>> print(representation['self_link']) |
620 | + >>> print(representation['self_link']) # noqa |
621 | http://.../~import-owner/scruffbuntu/+source/scruff/+git/new-import/+code-import |
622 | >>> print(representation['branch_link']) |
623 | None |
624 | diff --git a/lib/lp/registry/browser/tests/distributionmirror-views.txt b/lib/lp/registry/browser/tests/distributionmirror-views.txt |
625 | index af16876..987809d 100644 |
626 | --- a/lib/lp/registry/browser/tests/distributionmirror-views.txt |
627 | +++ b/lib/lp/registry/browser/tests/distributionmirror-views.txt |
628 | @@ -447,6 +447,7 @@ And which organisation runs a mirror: |
629 | The page contains a source list... |
630 | |
631 | >>> print(extract_text(find_tag_by_id(content, 'sources-list-entries'))) |
632 | + ... # noqa |
633 | deb http://localhost:11375/valid-mirror2/ YOUR_UBUNTU_VERSION_HERE main |
634 | deb-src http://localhost:11375/valid-mirror2/ YOUR_UBUNTU_VERSION_HERE main |
635 | |
636 | diff --git a/lib/lp/registry/doc/distribution-mirror.txt b/lib/lp/registry/doc/distribution-mirror.txt |
637 | index 1249ad7..062b666 100644 |
638 | --- a/lib/lp/registry/doc/distribution-mirror.txt |
639 | +++ b/lib/lp/registry/doc/distribution-mirror.txt |
640 | @@ -569,7 +569,7 @@ checked if that mirror's last sync was in the last one or two days. |
641 | >>> when = datetime(2005, 9, 17, tzinfo=utc) |
642 | >>> urls = warty_mirror.getURLsToCheckUpdateness(when=when) |
643 | >>> for (freshness, url) in urls.items(): |
644 | - ... print('%s: %s' % (freshness.name, url)) |
645 | + ... print('%s: %s' % (freshness.name, url)) # noqa |
646 | UP: http://foo.bar.com/pub/pool/main/a/alsa-utils/alsa-utils_1.0.9a-4.dsc |
647 | TWODAYSBEHIND: |
648 | http://foo.bar.com/pub/pool/main/a/alsa-utils/alsa-utils_1.0.8-1ubuntu1.dsc |
649 | @@ -625,7 +625,7 @@ so we need to skip that upload. |
650 | >>> when = datetime(2005, 6, 22, tzinfo=utc) |
651 | >>> urls = warty_i386_mirror.getURLsToCheckUpdateness(when=when) |
652 | >>> for (freshness, url) in urls.items(): |
653 | - ... print('%s: %s' % (freshness.name, url)) |
654 | + ... print('%s: %s' % (freshness.name, url)) # noqa |
655 | UP: http://foo.bar.com/pub/pool/main/p/pmount/pmount_1.9-1_all.deb |
656 | ONEWEEKBEHIND: |
657 | http://foo.bar.com/pub/pool/main/m/mozilla-firefox/mozilla-firefox_0.9_i386.deb |
658 | @@ -633,7 +633,7 @@ so we need to skip that upload. |
659 | >>> when = datetime(2005, 6, 20, 0, 1, tzinfo=utc) |
660 | >>> urls = warty_i386_mirror.getURLsToCheckUpdateness(when=when) |
661 | >>> for (freshness, url) in urls.items(): |
662 | - ... print('%s: %s' % (freshness.name, url)) |
663 | + ... print('%s: %s' % (freshness.name, url)) # noqa |
664 | UP: http://foo.bar.com/pub/pool/main/p/pmount/pmount_1.9-1_all.deb |
665 | TWODAYSBEHIND: |
666 | http://foo.bar.com/pub/pool/main/m/mozilla-firefox/mozilla-firefox_0.9_i386.deb |
667 | diff --git a/lib/lp/registry/stories/announcements/xx-announcements.txt b/lib/lp/registry/stories/announcements/xx-announcements.txt |
668 | index c683ffe..df2535e 100644 |
669 | --- a/lib/lp/registry/stories/announcements/xx-announcements.txt |
670 | +++ b/lib/lp/registry/stories/announcements/xx-announcements.txt |
671 | @@ -741,7 +741,7 @@ let us use a DTD to define the html entities that standard xml is missing. |
672 | >>> soup = BeautifulSoup(nopriv_browser.contents) |
673 | >>> soup.find('feed').entry.title |
674 | <...>Ampersand="&" LessThan="<" GreaterThan=">"</title> |
675 | - >>> print(soup.find('feed').entry.content) |
676 | + >>> print(soup.find('feed').entry.content) # noqa |
677 | <... |
678 | Ampersand="&amp;"<br/> |
679 | LessThan="&lt;"<br/> |
680 | diff --git a/lib/lp/registry/stories/gpg-coc/xx-gpg-coc.txt b/lib/lp/registry/stories/gpg-coc/xx-gpg-coc.txt |
681 | index 275a6bf..f44b232 100644 |
682 | --- a/lib/lp/registry/stories/gpg-coc/xx-gpg-coc.txt |
683 | +++ b/lib/lp/registry/stories/gpg-coc/xx-gpg-coc.txt |
684 | @@ -65,7 +65,7 @@ followed by ASCII armored encrypted confirmation instructions. Ensure that |
685 | the clear text instructions contain the expected URLs pointing to more help. |
686 | |
687 | >>> cipher_body = msg.get_payload(decode=True) |
688 | - >>> print(six.ensure_text(cipher_body)) |
689 | + >>> print(six.ensure_text(cipher_body)) # noqa |
690 | Hello, |
691 | <BLANKLINE> |
692 | This message contains the instructions for confirming registration of an |
693 | diff --git a/lib/lp/registry/stories/person/xx-person-rdf.txt b/lib/lp/registry/stories/person/xx-person-rdf.txt |
694 | index 701bc98..9aa39d4 100644 |
695 | --- a/lib/lp/registry/stories/person/xx-person-rdf.txt |
696 | +++ b/lib/lp/registry/stories/person/xx-person-rdf.txt |
697 | @@ -21,7 +21,7 @@ And this is what the FOAF document for an individual actually looks |
698 | like. It includes GPG information, if the user has any. |
699 | |
700 | >>> anon_browser.open("http://launchpad.test/~name16/+rdf") |
701 | - >>> print(anon_browser.contents) |
702 | + >>> print(anon_browser.contents) # noqa |
703 | <?xml version="1.0"...?> |
704 | <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
705 | xmlns:foaf="http://xmlns.com/foaf/0.1/" |
706 | diff --git a/lib/lp/registry/stories/productrelease/xx-productrelease-delete.txt b/lib/lp/registry/stories/productrelease/xx-productrelease-delete.txt |
707 | index f33a780..c352ee3 100644 |
708 | --- a/lib/lp/registry/stories/productrelease/xx-productrelease-delete.txt |
709 | +++ b/lib/lp/registry/stories/productrelease/xx-productrelease-delete.txt |
710 | @@ -64,5 +64,6 @@ the milestone is inactive. |
711 | |
712 | >>> print(extract_text( |
713 | ... find_tag_by_id(salgados_browser.contents, 'series-trunk'))) |
714 | + ... # noqa |
715 | Version Expected Released Summary |
716 | Mozilla Firefox 0.9.2... Set date Change details This is an inactive ... |
717 | diff --git a/lib/lp/services/database/doc/textsearching.txt b/lib/lp/services/database/doc/textsearching.txt |
718 | index 72f365e..6aa25a7 100644 |
719 | --- a/lib/lp/services/database/doc/textsearching.txt |
720 | +++ b/lib/lp/services/database/doc/textsearching.txt |
721 | @@ -721,6 +721,7 @@ all the terms combined with an & query for each ordinal-1 subset of the terms: |
722 | |
723 | >>> print(nl_phrase_search( |
724 | ... 'system is slow when running firefox on ubuntu', Question)) |
725 | + ... # noqa |
726 | (firefox&run&slow&system&ubuntu)|(run&slow&system&ubuntu)|(firefox&slow&system&ubuntu)|(firefox&run&system&ubuntu)|(firefox&run&slow&ubuntu)|(firefox&run&slow&system) |
727 | |
728 | Short queries are expanded more simply: |
729 | diff --git a/lib/lp/services/feeds/stories/xx-links.txt b/lib/lp/services/feeds/stories/xx-links.txt |
730 | index 27a2fdf..d50b3dc 100644 |
731 | --- a/lib/lp/services/feeds/stories/xx-links.txt |
732 | +++ b/lib/lp/services/feeds/stories/xx-links.txt |
733 | @@ -165,7 +165,7 @@ it must have quotes and html escaped. |
734 | >>> logout() |
735 | >>> browser.open('http://launchpad.test/bad-displayname') |
736 | >>> soup = BeautifulSoup(browser.contents) |
737 | - >>> soup.head.find_all('link', type='application/atom+xml') |
738 | + >>> soup.head.find_all('link', type='application/atom+xml') # noqa |
739 | [<link href="http://feeds.launchpad.test/bad-displayname/announcements.atom" |
740 | rel="alternate" |
741 | title='Announcements for Bad displayname"><script>alert("h4x0r")</script>' |
742 | @@ -297,7 +297,7 @@ show a link to the atom feed for that source package's latest bugs. |
743 | |
744 | >>> browser.open('http://bugs.launchpad.test/ubuntu/+source/cnews') |
745 | >>> soup = BeautifulSoup(browser.contents) |
746 | - >>> soup.head.find_all('link', type='application/atom+xml') |
747 | + >>> soup.head.find_all('link', type='application/atom+xml') # noqa |
748 | [<link |
749 | href="http://feeds.launchpad.test/ubuntu/+source/cnews/latest-bugs.atom" |
750 | rel="alternate" title="Latest Bugs for cnews in Ubuntu" |
751 | @@ -367,7 +367,7 @@ atom feed for that branch's revisions. |
752 | >>> url = 'http://code.launchpad.test/~mark/firefox/release--0.9.1' |
753 | >>> browser.open(url) |
754 | >>> soup = BeautifulSoup(browser.contents) |
755 | - >>> soup.head.find_all('link', type='application/atom+xml') |
756 | + >>> soup.head.find_all('link', type='application/atom+xml') # noqa |
757 | [<link |
758 | href="http://feeds.launchpad.test/~mark/firefox/release--0.9.1/branch.atom" |
759 | rel="alternate" |
760 | diff --git a/lib/lp/soyuz/browser/tests/archive-views.txt b/lib/lp/soyuz/browser/tests/archive-views.txt |
761 | index 69566a0..727b1f5 100644 |
762 | --- a/lib/lp/soyuz/browser/tests/archive-views.txt |
763 | +++ b/lib/lp/soyuz/browser/tests/archive-views.txt |
764 | @@ -497,7 +497,7 @@ tags. |
765 | >>> cprov.archive.description = ( |
766 | ... '<a href="http://example.com/">http://example.com/</a>') |
767 | >>> login(ANONYMOUS) |
768 | - >>> print(view.archive_description_html.value) |
769 | + >>> print(view.archive_description_html.value) # noqa |
770 | <p><a href="http://example.com/">http://example.com/</a></p> |
771 | |
772 | The PPA description is linked when the user has made a contribution. |
773 | diff --git a/lib/lp/soyuz/browser/tests/distributionsourcepackagerelease-views.txt b/lib/lp/soyuz/browser/tests/distributionsourcepackagerelease-views.txt |
774 | index 90ce8e3..35a7d5f 100644 |
775 | --- a/lib/lp/soyuz/browser/tests/distributionsourcepackagerelease-views.txt |
776 | +++ b/lib/lp/soyuz/browser/tests/distributionsourcepackagerelease-views.txt |
777 | @@ -29,7 +29,7 @@ upload encapsulated as `ProxiedSourceLibraryFileAlias` objects. Their |
778 | tofiles allowing them to be downloaded using `dget`. |
779 | |
780 | >>> for source_file in dspr_view.files: |
781 | - ... print(source_file.filename, source_file.http_url) |
782 | + ... print(source_file.filename, source_file.http_url) # noqa |
783 | testing-dspr_1.0.dsc |
784 | http://.../ubuntutest/+archive/primary/+sourcefiles/testing-dspr/1.0/testing-dspr_1.0.dsc |
785 | |
786 | diff --git a/lib/lp/soyuz/browser/tests/publishing-views.txt b/lib/lp/soyuz/browser/tests/publishing-views.txt |
787 | index 9e04d21..18b16c8 100644 |
788 | --- a/lib/lp/soyuz/browser/tests/publishing-views.txt |
789 | +++ b/lib/lp/soyuz/browser/tests/publishing-views.txt |
790 | @@ -62,7 +62,7 @@ for each file related with the alsa-utils source publication in ubuntu. |
791 | |
792 | >>> view = create_initialized_view(alsa_pub, "+listing-archive-detailed") |
793 | |
794 | - >>> print(pretty(view.published_source_and_binary_files)) |
795 | + >>> print(pretty(view.published_source_and_binary_files)) # noqa |
796 | [{'class': 'source', |
797 | 'filename': 'alsa-utils-test_666.dsc', |
798 | 'filesize': 28, |
799 | @@ -81,6 +81,7 @@ inspected. |
800 | ... iceweasel_source_pub, "+listing-archive-detailed") |
801 | |
802 | >>> print(pretty(ppa_source_view.published_source_and_binary_files)) |
803 | + ... # noqa |
804 | [{'class': 'source', |
805 | 'filename': 'firefox_0.9.2.orig.tar.gz', |
806 | 'filesize': 9922560, |
807 | diff --git a/lib/lp/soyuz/browser/tests/sourcepackage-views.txt b/lib/lp/soyuz/browser/tests/sourcepackage-views.txt |
808 | index 9697d91..086736a 100644 |
809 | --- a/lib/lp/soyuz/browser/tests/sourcepackage-views.txt |
810 | +++ b/lib/lp/soyuz/browser/tests/sourcepackage-views.txt |
811 | @@ -107,7 +107,7 @@ sourcepackagename before passing to regexp. |
812 | |
813 | >>> libc = ubuntu.getSourcePackage('libstdc++').getVersion('b8p') |
814 | >>> libc_view = queryMultiAdapter((libc, request), name="+changelog") |
815 | - >>> print(libc_view.changelog_entry) |
816 | + >>> print(libc_view.changelog_entry) # noqa |
817 | libstdc++ (9.9-1) hoary; urgency=high |
818 | <BLANKLINE> |
819 | * Placeholder |
820 | diff --git a/lib/lp/soyuz/doc/gina.txt b/lib/lp/soyuz/doc/gina.txt |
821 | index ad2b8fa..1c991ea 100644 |
822 | --- a/lib/lp/soyuz/doc/gina.txt |
823 | +++ b/lib/lp/soyuz/doc/gina.txt |
824 | @@ -224,7 +224,9 @@ Check that x11proto-damage has its Build-Depends-Indep value correctly set: |
825 | |
826 | Check if the changelog message was stored correcly: |
827 | |
828 | - >>> print(x11p.changelog_entry) #doctest: -NORMALIZE_WHITESPACE |
829 | + >>> print(x11p.changelog_entry) |
830 | + ... # noqa |
831 | + ... # doctest: -NORMALIZE_WHITESPACE |
832 | x11proto-damage (6.8.99.7-2) breezy; urgency=low |
833 | <BLANKLINE> |
834 | * Add dependency on x11proto-fixes-dev. |
835 | @@ -238,6 +240,7 @@ Check if the changelog message was stored correcly: |
836 | Check that the changelog was uploaded to the librarian correctly: |
837 | |
838 | >>> print(six.ensure_text(x11p.changelog.read())) |
839 | + ... # noqa |
840 | x11proto-damage (6.8.99.7-2) breezy; urgency=low |
841 | <BLANKLINE> |
842 | * Add dependency on x11proto-fixes-dev. |
843 | diff --git a/lib/lp/soyuz/doc/soyuz-upload.txt b/lib/lp/soyuz/doc/soyuz-upload.txt |
844 | index 6f049e9..2b3ff99 100644 |
845 | --- a/lib/lp/soyuz/doc/soyuz-upload.txt |
846 | +++ b/lib/lp/soyuz/doc/soyuz-upload.txt |
847 | @@ -500,6 +500,7 @@ required entry for 'etherwake': |
848 | ... for source in Sources.iter_paragraphs(sources_file): |
849 | ... pprint_deb822(source) |
850 | ... print('END') |
851 | + ... # noqa |
852 | Architecture: any |
853 | Binary: etherwake |
854 | Build-Depends: debhelper (>> 2.0) |
855 | @@ -613,7 +614,9 @@ and SHA256) for each index published. |
856 | >>> with open("/var/tmp/archive/ubuntutest/dists/" |
857 | ... "breezy-autotest/Release") as f: |
858 | ... releasefile_contents = f.read() |
859 | - >>> print(releasefile_contents + '\nEND') #doctest: -NORMALIZE_WHITESPACE |
860 | + >>> print(releasefile_contents + '\nEND') |
861 | + ... # noqa |
862 | + ... # doctest: -NORMALIZE_WHITESPACE |
863 | Origin: ubuntutest |
864 | Label: ubuntutest |
865 | Suite: breezy-autotest |
866 | diff --git a/lib/lp/soyuz/stories/distribution/xx-distribution-packages.txt b/lib/lp/soyuz/stories/distribution/xx-distribution-packages.txt |
867 | index 345c295..4f30fa7 100644 |
868 | --- a/lib/lp/soyuz/stories/distribution/xx-distribution-packages.txt |
869 | +++ b/lib/lp/soyuz/stories/distribution/xx-distribution-packages.txt |
870 | @@ -172,10 +172,10 @@ and open questions the package has. |
871 | |
872 | Links exist to jump to the query page for the new bugs and open questions. |
873 | |
874 | - >>> print(user_browser.getLink("0 new bugs").url) |
875 | + >>> print(user_browser.getLink("0 new bugs").url) # noqa |
876 | http://bugs.launchpad.test/ubuntu/+source/iceweasel/+bugs?field.status:list=NEW |
877 | |
878 | - >>> print(user_browser.getLink("0 open questions").url) |
879 | + >>> print(user_browser.getLink("0 open questions").url) # noqa |
880 | http://answers.launchpad.test/ubuntu/+source/iceweasel/+questions?field.status=OPEN |
881 | |
882 | The page also has a table that shows the distro series in which the package is |
883 | diff --git a/lib/lp/soyuz/stories/ppa/xx-ppa-files.txt b/lib/lp/soyuz/stories/ppa/xx-ppa-files.txt |
884 | index 00fef87..2c734be 100644 |
885 | --- a/lib/lp/soyuz/stories/ppa/xx-ppa-files.txt |
886 | +++ b/lib/lp/soyuz/stories/ppa/xx-ppa-files.txt |
887 | @@ -341,7 +341,7 @@ redirect to the files for the default named PPA. |
888 | >>> print(http(six.ensure_binary(r""" |
889 | ... GET %s HTTP/1.1 |
890 | ... """ % file_lp_url_without_ppa_name.replace( |
891 | - ... 'http://launchpad.test', '')))) |
892 | + ... 'http://launchpad.test', '')))) # noqa |
893 | HTTP/1.1 301 Moved Permanently |
894 | ... |
895 | Location: http://localhost/~no-priv/+archive/ubuntu/ppa/+files/test-pkg_1.0.dsc |
896 | @@ -405,7 +405,7 @@ remains in the PPA page, but it's not a link anymore. |
897 | If by any chance, mostly bookmarked URLs, it gets accessed via the |
898 | LP proxy URL a proper NotFound error is raised. |
899 | |
900 | - >>> print(file_lp_url) |
901 | + >>> print(file_lp_url) # noqa |
902 | http://launchpad.test/~no-priv/+archive/ubuntu/ppa/+sourcefiles/test-pkg/1.0/test-pkg_1.0.dsc |
903 | |
904 | >>> not_found_file = http(six.ensure_binary(r""" |
905 | diff --git a/lib/lp/soyuz/stories/ppa/xx-ppa-navigation.txt b/lib/lp/soyuz/stories/ppa/xx-ppa-navigation.txt |
906 | index 605f805..1fe0292 100644 |
907 | --- a/lib/lp/soyuz/stories/ppa/xx-ppa-navigation.txt |
908 | +++ b/lib/lp/soyuz/stories/ppa/xx-ppa-navigation.txt |
909 | @@ -183,6 +183,6 @@ The 'First' and 'Previous' links, however, are now active. |
910 | >>> anon_browser.getLink('First').url |
911 | 'http://launchpad.test/%7Ecprov/+archive/ubuntu/ppa/+index?batch=1' |
912 | |
913 | - >>> anon_browser.getLink('Previous').url |
914 | + >>> anon_browser.getLink('Previous').url # noqa |
915 | 'http://launchpad.test/%7Ecprov/+archive/ubuntu/ppa/+index?batch=1&direction=backwards&memo=2&start=1' |
916 | |
917 | diff --git a/lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt b/lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt |
918 | index 65cccda..97cf29d 100644 |
919 | --- a/lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt |
920 | +++ b/lib/lp/soyuz/stories/ppa/xx-ubuntu-ppas.txt |
921 | @@ -425,7 +425,7 @@ is also included in the statistics portlet. |
922 | Current build activity is linked to the builds page with the relevant |
923 | filter. |
924 | |
925 | - >>> print(anon_browser.getLink('1 package building').url) |
926 | + >>> print(anon_browser.getLink('1 package building').url) # noqa |
927 | http://launchpad.test/~cprov/+archive/ubuntu/ppa/+builds?build_state=building |
928 | |
929 | |
930 | @@ -594,7 +594,7 @@ The key fingerprint links to the actual key available in the ubuntu |
931 | keyserver. |
932 | |
933 | >>> print(anon_browser.getLink( |
934 | - ... '1024D/ABCDEF0123456789ABCDDCBA0000111112345678').url) |
935 | + ... '1024D/ABCDEF0123456789ABCDDCBA0000111112345678').url) # noqa |
936 | https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=index&search=0xABCDEF0123456789ABCDDCBA0000111112345678 |
937 | |
938 | Using software from a PPA can be hard for novices. We offer two |
939 | diff --git a/lib/lp/soyuz/stories/soyuz/xx-build-record.txt b/lib/lp/soyuz/stories/soyuz/xx-build-record.txt |
940 | index 9cb475d..33bb61b 100644 |
941 | --- a/lib/lp/soyuz/stories/soyuz/xx-build-record.txt |
942 | +++ b/lib/lp/soyuz/stories/soyuz/xx-build-record.txt |
943 | @@ -474,7 +474,7 @@ The 'Build status' section is identical for PPAs. |
944 | >>> print(anon_browser.getLink('Bob The Builder').url) |
945 | http://launchpad.test/builders/bob |
946 | |
947 | - >>> print(anon_browser.getLink('buildlog').url) |
948 | + >>> print(anon_browser.getLink('buildlog').url) # noqa |
949 | http://launchpad.test/~cprov/+archive/ubuntu/ppa/+build/.../+files/buildlog_... |
950 | |
951 | >>> print(anon_browser.getLink('ppa-test-bin_1.0_i386.changes').url) |
952 | diff --git a/lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt b/lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt |
953 | index b05ef78..14b37d6 100644 |
954 | --- a/lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt |
955 | +++ b/lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt |
956 | @@ -200,7 +200,7 @@ via `dget`. |
957 | ac512102db9724bee18f26945efeeb82fdab89819e64e120fbfda755ca50c2c6 |
958 | View changes file |
959 | |
960 | - >>> print(anon_browser.getLink('testing-dspr_1.0.dsc').url) |
961 | + >>> print(anon_browser.getLink('testing-dspr_1.0.dsc').url) # noqa |
962 | http://.../ubuntutest/+archive/primary/+sourcefiles/testing-dspr/1.0/testing-dspr_1.0.dsc |
963 | |
964 | The 'Downloads' section also lists and link to package diffs when they |
965 | diff --git a/lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt b/lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt |
966 | index b7648c2..740fce3 100644 |
967 | --- a/lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt |
968 | +++ b/lib/lp/soyuz/stories/soyuz/xx-distroarchseries-binpackages.txt |
969 | @@ -25,7 +25,7 @@ This page provides the publishing history of this BinaryPackage within |
970 | this architecture: |
971 | |
972 | >>> table = find_tag_by_id(browser.contents, 'publishing-summary') |
973 | - >>> print(extract_text(table)) |
974 | + >>> print(extract_text(table)) # noqa |
975 | Date Status Target Pocket Component Section Priority Phased updates Version |
976 | 2006-04-11 13:00:01 UTC Published...Warty i386 release main base Important 1.0 |
977 | Published on 2006-04-11 |
978 | @@ -182,7 +182,7 @@ This page provides the publishing history of this BinaryPackage within |
979 | this architecture: |
980 | |
981 | >>> print(extract_text( |
982 | - ... find_tag_by_id(browser.contents, 'publishing-summary'))) |
983 | + ... find_tag_by_id(browser.contents, 'publishing-summary'))) # noqa |
984 | Date Status Target Pocket Component Section Priority Phased updates Version |
985 | 2007-08-09 21:56:39 UTC Published...B...t i386 release partner devel Optional 1.0-1 |
986 | Published on 2007-08-09 |
987 | @@ -256,6 +256,7 @@ distroseries and archive are shown. |
988 | |
989 | >>> print(extract_text( |
990 | ... find_tag_by_id(anon_browser.contents, 'publishing-summary'))) |
991 | + ... # noqa |
992 | Date Status Target Pocket Component Section Priority Phased updates Version |
993 | 2007-09-13 ... Superseded...Warty i386 release universe editors Important 0.1-1 |
994 | Published on 2006-01-26 |
995 | diff --git a/lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt b/lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt |
996 | index 2881c1a..1ec9a52 100644 |
997 | --- a/lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt |
998 | +++ b/lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt |
999 | @@ -44,7 +44,7 @@ about Firefox's publishing history. |
1000 | |
1001 | >>> browser.getLink("View full publishing history").click() |
1002 | >>> table = find_tag_by_id(browser.contents, 'publishing-summary') |
1003 | - >>> print(extract_text(table)) |
1004 | + >>> print(extract_text(table)) # noqa |
1005 | Date Status Target Pocket Component Section Version |
1006 | 2006-02-13 12:19:00 UTC Published Warty release main web 0.9 |
1007 | Published on 2006-02-13 |
1008 | @@ -89,7 +89,7 @@ published version) if they are available: |
1009 | File Size SHA-256 Checksum |
1010 | firefox_0.9.2.orig.tar.gz 9.5 MiB ... |
1011 | |
1012 | - >>> print(browser.getLink("firefox_0.9.2.orig.tar.gz").url) |
1013 | + >>> print(browser.getLink("firefox_0.9.2.orig.tar.gz").url) # noqa |
1014 | http://launchpad.test/ubuntu/+archive/primary/+sourcefiles/mozilla-firefox/0.9/firefox_0.9.2.orig.tar.gz |
1015 | |
1016 | This page also provides links to the binary packages generated by this |
1017 | @@ -286,7 +286,7 @@ And also download the files contained in this source, like '.orig', |
1018 | File Size SHA-256 Checksum |
1019 | firefox_0.9.2.orig.tar.gz 9.5 MiB ... |
1020 | |
1021 | - >>> print(browser.getLink("firefox_0.9.2.orig.tar.gz").url) |
1022 | + >>> print(browser.getLink("firefox_0.9.2.orig.tar.gz").url) # noqa |
1023 | http://launchpad.test/ubuntu/+archive/primary/+sourcefiles/mozilla-firefox/0.9/firefox_0.9.2.orig.tar.gz |
1024 | |
1025 | If we go to the same page for alsa-utils, the changelog has text that is |
1026 | @@ -355,10 +355,11 @@ published version) if they are available: |
1027 | commercialpackage_1.0-1.dsc 567 bytes ... |
1028 | |
1029 | >>> print(browser.getLink("commercialpackage_1.0.orig.tar.gz").url) |
1030 | + ... # noqa |
1031 | http://launchpad.test/ubuntu/+archive/partner/+sourcefiles/commercialpackage/1.0-1/commercialpackage_1.0.orig.tar.gz |
1032 | - >>> print(browser.getLink("commercialpackage_1.0-1.diff.gz").url) |
1033 | + >>> print(browser.getLink("commercialpackage_1.0-1.diff.gz").url) # noqa |
1034 | http://launchpad.test/ubuntu/+archive/partner/+sourcefiles/commercialpackage/1.0-1/commercialpackage_1.0-1.diff.gz |
1035 | - >>> print(browser.getLink("commercialpackage_1.0-1.dsc").url) |
1036 | + >>> print(browser.getLink("commercialpackage_1.0-1.dsc").url) # noqa |
1037 | http://launchpad.test/ubuntu/+archive/partner/+sourcefiles/commercialpackage/1.0-1/commercialpackage_1.0-1.dsc |
1038 | |
1039 | This page also provides links to the binary packages generated by this |
1040 | @@ -392,7 +393,7 @@ The text is generated automatically by appending: |
1041 | for each published version. |
1042 | |
1043 | >>> browser.getLink("View changelog").click() |
1044 | - >>> browser.url |
1045 | + >>> browser.url # noqa |
1046 | 'http://launchpad.test/ubuntu/breezy-autotest/+source/commercialpackage/+changelog' |
1047 | |
1048 | >>> tag = find_tag_by_id(browser.contents, 'commercialpackage_1.0-1') |
1049 | @@ -435,10 +436,11 @@ And also download the files contained in this source, like '.orig', |
1050 | commercialpackage_1.0-1.dsc 567 bytes ... |
1051 | |
1052 | >>> print(browser.getLink("commercialpackage_1.0.orig.tar.gz").url) |
1053 | + ... # noqa |
1054 | http://launchpad.test/ubuntu/+archive/partner/+sourcefiles/commercialpackage/1.0-1/commercialpackage_1.0.orig.tar.gz |
1055 | - >>> print(browser.getLink("commercialpackage_1.0-1.diff.gz").url) |
1056 | + >>> print(browser.getLink("commercialpackage_1.0-1.diff.gz").url) # noqa |
1057 | http://launchpad.test/ubuntu/+archive/partner/+sourcefiles/commercialpackage/1.0-1/commercialpackage_1.0-1.diff.gz |
1058 | - >>> print(browser.getLink("commercialpackage_1.0-1.dsc").url) |
1059 | + >>> print(browser.getLink("commercialpackage_1.0-1.dsc").url) # noqa |
1060 | http://launchpad.test/ubuntu/+archive/partner/+sourcefiles/commercialpackage/1.0-1/commercialpackage_1.0-1.dsc |
1061 | |
1062 | |
1063 | @@ -459,6 +461,7 @@ distroseries and archive are shown. |
1064 | |
1065 | >>> print(extract_text( |
1066 | ... find_tag_by_id(anon_browser.contents, 'publishing-summary'))) |
1067 | + ... # noqa |
1068 | Date Status Target Pocket Component Section Version |
1069 | 2006-02-15 ... Pending Warty release main editors 1.0.9a-4ubuntu1 |
1070 | Copied from ubuntu hoary in Primary Archive for Ubuntu Linux |
1071 | diff --git a/lib/lp/soyuz/stories/soyuz/xx-packagepublishinghistory.txt b/lib/lp/soyuz/stories/soyuz/xx-packagepublishinghistory.txt |
1072 | index dd60f1c..c12fa2d 100644 |
1073 | --- a/lib/lp/soyuz/stories/soyuz/xx-packagepublishinghistory.txt |
1074 | +++ b/lib/lp/soyuz/stories/soyuz/xx-packagepublishinghistory.txt |
1075 | @@ -51,7 +51,7 @@ intermediate archive information. |
1076 | ... '+publishinghistory' % new_distro.name) |
1077 | |
1078 | >>> table = find_tag_by_id(anon_browser.contents, 'publishing-summary') |
1079 | - >>> print(extract_text(table)) |
1080 | + >>> print(extract_text(table)) # noqa |
1081 | Date Status Target Pocket Component Section Version |
1082 | ... UTC Pending Foo-series release main base 666 |
1083 | Copied from ubuntutest breezy-autotest in Primary Archive for Ubuntu Test by Person123 |
1084 | @@ -79,7 +79,7 @@ original distribution was Ubuntutest breezy-autotest. |
1085 | ... 'http://launchpad.test/%s/+source/test-history/' |
1086 | ... '+publishinghistory' % new_distro.name) |
1087 | >>> table = find_tag_by_id(anon_browser.contents, 'publishing-summary') |
1088 | - >>> print(extract_text(table)) |
1089 | + >>> print(extract_text(table)) # noqa |
1090 | Date Status Target Pocket Component Section Version |
1091 | ... UTC Pending Another-series release main base 666 |
1092 | Copied from Primary Archive for Foo-distro by Person123 |
1093 | @@ -101,7 +101,7 @@ messages. |
1094 | ... 'http://launchpad.test/%s/+source/test-history/' |
1095 | ... '+publishinghistory' % new_distro.name) |
1096 | >>> table = find_tag_by_id(anon_browser.contents, 'publishing-summary') |
1097 | - >>> print(extract_text(table)) |
1098 | + >>> print(extract_text(table)) # noqa |
1099 | Date Status Target Pocket Component Section Version |
1100 | ... UTC Pending Another-series release universe base 666 |
1101 | Copied from ubuntutest breezy-autotest in Primary Archive for Ubuntu Test by Foo Bar |
1102 | @@ -176,8 +176,7 @@ distro-arch-series-binarypackage page. |
1103 | |
1104 | >>> anon_browser.open(url) |
1105 | >>> table = find_tag_by_id(anon_browser.contents, 'publishing-summary') |
1106 | - >>> print(extract_text(table)) |
1107 | + >>> print(extract_text(table)) # noqa |
1108 | Date Status Target Pocket Component Section Priority Phased updates Version |
1109 | ... UTC Pending ubuntutest Breezy ... release main base Standard 666 |
1110 | Copied from ubuntutest breezy-autotest-release i386 in Primary Archive for Ubuntu Test |
1111 | - |
1112 | diff --git a/lib/lp/soyuz/stories/soyuz/xx-queue-pages-motu.txt b/lib/lp/soyuz/stories/soyuz/xx-queue-pages-motu.txt |
1113 | index 6824527..ad0257f 100644 |
1114 | --- a/lib/lp/soyuz/stories/soyuz/xx-queue-pages-motu.txt |
1115 | +++ b/lib/lp/soyuz/stories/soyuz/xx-queue-pages-motu.txt |
1116 | @@ -39,7 +39,7 @@ component: |
1117 | >>> motu_browser.open( |
1118 | ... "http://launchpad.test/ubuntu/breezy-autotest/") |
1119 | >>> motu_browser.getLink("All uploads").click() |
1120 | - >>> print_queue(motu_browser.contents) |
1121 | + >>> print_queue(motu_browser.contents) # noqa |
1122 | Package Version Component Section Priority Sets Pocket When |
1123 | netapplet...ddtp... - Release 2006... |
1124 | netapplet...dist... - Release 2006... |
1125 | diff --git a/lib/lp/soyuz/stories/soyuz/xx-queue-pages.txt b/lib/lp/soyuz/stories/soyuz/xx-queue-pages.txt |
1126 | index 00d8cca..7b8a8f2 100644 |
1127 | --- a/lib/lp/soyuz/stories/soyuz/xx-queue-pages.txt |
1128 | +++ b/lib/lp/soyuz/stories/soyuz/xx-queue-pages.txt |
1129 | @@ -66,7 +66,7 @@ Viewing the current queue, by default the NEW queue. |
1130 | ... for row in queue_rows: |
1131 | ... print(extract_text(row)) |
1132 | |
1133 | - >>> print_queue(anon_browser.contents) |
1134 | + >>> print_queue(anon_browser.contents) # noqa |
1135 | Package Version Component Section Priority Sets Pocket When |
1136 | netapplet...ddtp... - Release 2006-... |
1137 | netapplet...dist... - Release 2006-... |
1138 | @@ -96,7 +96,7 @@ UNAPPROVED one. |
1139 | >>> anon_browser.getControl( |
1140 | ... name="queue_state", index=0).displayValue = ['Unapproved'] |
1141 | >>> anon_browser.getControl("Update").click() |
1142 | - >>> print_queue(anon_browser.contents) |
1143 | + >>> print_queue(anon_browser.contents) # noqa |
1144 | Package Version Component Section Priority Sets Pocket When |
1145 | lang...-de (source) 1.0 main trans... low Proposed 2007-... |
1146 | netapplet...ddtp... - Backp... 2006-... |
1147 | @@ -109,13 +109,13 @@ custom-upload filename. |
1148 | |
1149 | >>> anon_browser.getControl(name="queue_text").value = 'language' |
1150 | >>> anon_browser.getControl("Update").click() |
1151 | - >>> print_queue(anon_browser.contents) |
1152 | + >>> print_queue(anon_browser.contents) # noqa |
1153 | Package Version Component Section Priority Sets Pocket When |
1154 | lang...-de (source) 1.0 main trans... low Proposed 2007-... |
1155 | |
1156 | >>> anon_browser.getControl(name="queue_text").value = 'netapplet' |
1157 | >>> anon_browser.getControl("Update").click() |
1158 | - >>> print_queue(anon_browser.contents) |
1159 | + >>> print_queue(anon_browser.contents) # noqa |
1160 | Package Version Component Section Priority Sets Pocket When |
1161 | netapplet...ddtp... - Backp... 2006-... |
1162 | netapplet...(raw-translations) - Updates 2006-... |
1163 | @@ -124,7 +124,7 @@ custom-upload filename. |
1164 | ... name="queue_state", index=0).displayValue = ['New'] |
1165 | >>> anon_browser.getControl(name="queue_text").value = 'pmount' |
1166 | >>> anon_browser.getControl("Update").click() |
1167 | - >>> print_queue(anon_browser.contents) |
1168 | + >>> print_queue(anon_browser.contents) # noqa |
1169 | Package Version Component Section Priority Sets Pocket When |
1170 | pmount (i386) 0.1-1 Release 2006-... |
1171 | |
1172 | @@ -156,7 +156,7 @@ Package sets from other series are not shown. |
1173 | ... name="queue_state", index=0).displayValue = ['New'] |
1174 | >>> anon_browser.getControl(name="queue_text").value = '' |
1175 | >>> anon_browser.getControl("Update").click() |
1176 | - >>> print_queue(anon_browser.contents) |
1177 | + >>> print_queue(anon_browser.contents) # noqa |
1178 | Package Version Component Section Priority Sets Pocket When |
1179 | netapplet...ddtp... - Release 2006-... |
1180 | netapplet...dist... - Release 2006-... |
1181 | @@ -336,7 +336,7 @@ Go back to the "new" queue and accept "bar": |
1182 | |
1183 | >>> upload_manager_browser.open( |
1184 | ... "http://localhost/ubuntu/breezy-autotest/+queue") |
1185 | - >>> print_queue(upload_manager_browser.contents) |
1186 | + >>> print_queue(upload_manager_browser.contents) # noqa |
1187 | Package Version Component Section Priority Sets Pocket When |
1188 | bar (source) 1.0-1 universe devel low Release ... |
1189 | netapplet...ddtp... - Release 2006-... |
1190 | @@ -349,7 +349,7 @@ Go back to the "new" queue and accept "bar": |
1191 | >>> upload_manager_browser.getControl( |
1192 | ... name="QUEUE_ID").value = [str(bar_queue_id)] |
1193 | >>> upload_manager_browser.getControl(name="Accept").click() |
1194 | - >>> print_queue(upload_manager_browser.contents) |
1195 | + >>> print_queue(upload_manager_browser.contents) # noqa |
1196 | Package Version Component Section Priority Sets Pocket When |
1197 | netapplet...ddtp... - Release 2006-... |
1198 | netapplet...dist... - Release 2006-... |
1199 | @@ -404,7 +404,7 @@ The item is moved to the ACCEPTED queue: |
1200 | >>> upload_manager_browser.getControl( |
1201 | ... name="queue_state", index=0).displayValue = ['Accepted'] |
1202 | >>> upload_manager_browser.getControl("Update").click() |
1203 | - >>> print_queue(upload_manager_browser.contents) |
1204 | + >>> print_queue(upload_manager_browser.contents) # noqa |
1205 | Package Version Component Section Priority Sets Pocket When |
1206 | moz...irefox (i386) 0.9 Release 2006-... |
1207 | |
1208 | @@ -413,7 +413,7 @@ Going back to the "new" queue, we can see our item has gone: |
1209 | >>> upload_manager_browser.getControl( |
1210 | ... name="queue_state", index=0).displayValue = ['New'] |
1211 | >>> upload_manager_browser.getControl("Update").click() |
1212 | - >>> print_queue(upload_manager_browser.contents) |
1213 | + >>> print_queue(upload_manager_browser.contents) # noqa |
1214 | Package Version Component Section Priority Sets Pocket When |
1215 | netapplet...ddtp... - Release 2006-... |
1216 | netapplet...dist... - Release 2006-... |
1217 | @@ -488,7 +488,7 @@ overridden: |
1218 | OK: netapplet(restricted/admin) |
1219 | OK: pmount(restricted/admin/extra) |
1220 | |
1221 | - >>> print_queue(upload_manager_browser.contents) |
1222 | + >>> print_queue(upload_manager_browser.contents) # noqa |
1223 | Package Version Component Section Priority Sets Pocket When |
1224 | netapplet...ddtp... - Release 2006-... |
1225 | netapplet...dist... - Release 2006-... |
1226 | @@ -500,7 +500,7 @@ overridden values. |
1227 | >>> anon_browser.getControl( |
1228 | ... name="queue_state", index=0).displayValue=['Accepted'] |
1229 | >>> anon_browser.getControl("Update").click() |
1230 | - >>> print_queue(anon_browser.contents) |
1231 | + >>> print_queue(anon_browser.contents) # noqa |
1232 | Package Version Component Section Priority Sets Pocket When |
1233 | pmount (i386) 0.1-1 Release 2006-... |
1234 | ... |
1235 | @@ -520,7 +520,7 @@ source upload, and we can see its overridden values there: |
1236 | >>> anon_browser.getControl( |
1237 | ... name="queue_state", index=0).displayValue=['Done'] |
1238 | >>> anon_browser.getControl("Update").click() |
1239 | - >>> print_queue(anon_browser.contents) |
1240 | + >>> print_queue(anon_browser.contents) # noqa |
1241 | Package Version Component Section Priority Sets Pocket When |
1242 | ... |
1243 | netapplet (source) 0.99.6-1 restricted admin low ... |
1244 | @@ -543,7 +543,7 @@ Rejecting 'alsa-utils' source: |
1245 | >>> print_feedback_messages(upload_manager_browser.contents) |
1246 | OK: alsa-utils |
1247 | |
1248 | - >>> print_queue(upload_manager_browser.contents) |
1249 | + >>> print_queue(upload_manager_browser.contents) # noqa |
1250 | Package Version Component Section Priority Sets Pocket When |
1251 | netapplet...ddtp... - Release 2006-... |
1252 | netapplet...dist... - Release 2006-... |
1253 | diff --git a/lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt b/lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt |
1254 | index a78f610..2a50743 100644 |
1255 | --- a/lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt |
1256 | +++ b/lib/lp/soyuz/stories/soyuz/xx-sourcepackage-changelog.txt |
1257 | @@ -73,7 +73,7 @@ bots from picking them up): |
1258 | >>> anon_browser.open( |
1259 | ... "http://launchpad.test/ubuntu/hoary/+source/alsa-utils/" |
1260 | ... "+changelog") |
1261 | - >>> print(extract_text(find_main_content(anon_browser.contents))) |
1262 | + >>> print(extract_text(find_main_content(anon_browser.contents))) # noqa |
1263 | Change logs for ...alsa-utils... in Hoary |
1264 | ... |
1265 | -- Sample Person <email address hidden> Tue, 7 Feb 2006 12:10:08 +0300 |
1266 | diff --git a/lib/lp/soyuz/stories/webservice/xx-archive.txt b/lib/lp/soyuz/stories/webservice/xx-archive.txt |
1267 | index 42cb4a3..47006ac 100644 |
1268 | --- a/lib/lp/soyuz/stories/webservice/xx-archive.txt |
1269 | +++ b/lib/lp/soyuz/stories/webservice/xx-archive.txt |
1270 | @@ -176,7 +176,7 @@ This is a permission that allows a team to upload to a component: |
1271 | >>> url = ('/ubuntu/+archive/primary/+upload/ubuntu-team' |
1272 | ... '?type=component&item=main') |
1273 | >>> ubuntu_main_permission = webservice.get(url).jsonBody() |
1274 | - >>> pprint_entry(ubuntu_main_permission) |
1275 | + >>> pprint_entry(ubuntu_main_permission) # noqa |
1276 | archive_link: 'http://.../ubuntu/+archive/primary' |
1277 | component_name: 'main' |
1278 | date_created: ... |
1279 | @@ -192,7 +192,7 @@ This is a permission that allows an individual to upload a source package. |
1280 | >>> url = ('/ubuntu/+archive/primary/+upload/carlos' |
1281 | ... '?type=packagename&item=mozilla-firefox') |
1282 | >>> carlos_mozilla_permission = webservice.get(url).jsonBody() |
1283 | - >>> pprint_entry(carlos_mozilla_permission) |
1284 | + >>> pprint_entry(carlos_mozilla_permission) # noqa |
1285 | archive_link: 'http://.../ubuntu/+archive/primary' |
1286 | component_name: None |
1287 | date_created: ... |
1288 | @@ -209,7 +209,7 @@ This is a queue admin right for ubuntu-team: |
1289 | >>> url = ('/ubuntu/+archive/primary/+queue-admin/ubuntu-team' |
1290 | ... '?type=component&item=main') |
1291 | >>> ubuntu_main_permission = webservice.get(url).jsonBody() |
1292 | - >>> pprint_entry(ubuntu_main_permission) |
1293 | + >>> pprint_entry(ubuntu_main_permission) # noqa |
1294 | archive_link: 'http://.../ubuntu/+archive/primary' |
1295 | component_name: 'main' |
1296 | date_created: ... |
1297 | @@ -226,7 +226,7 @@ And one for an individual: |
1298 | >>> url = ('/ubuntu/+archive/primary/+queue-admin/name12' |
1299 | ... '?type=component&item=universe') |
1300 | >>> name16_admin_permission = webservice.get(url).jsonBody() |
1301 | - >>> pprint_entry(name16_admin_permission) |
1302 | + >>> pprint_entry(name16_admin_permission) # noqa |
1303 | archive_link: 'http://.../ubuntu/+archive/primary' |
1304 | component_name: 'universe' |
1305 | date_created: ... |
1306 | @@ -273,7 +273,7 @@ archive. First, define some general helper functions. |
1307 | ... api_version='devel').jsonBody() |
1308 | ... show_permission_entries(permissions) |
1309 | |
1310 | - >>> show_all_permissions(ubuntu_devel['main_archive_link']) |
1311 | + >>> show_all_permissions(ubuntu_devel['main_archive_link']) # noqa |
1312 | Archive Upload Rights ...~carlos None mozilla-firefox None None |
1313 | Archive Upload Rights ...~ubuntu-team main None None None |
1314 | Archive Upload Rights ...~ubuntu-team restricted None None None |
1315 | @@ -407,7 +407,7 @@ for a person to upload a package. |
1316 | |
1317 | >>> new_permission = user_webservice.get( |
1318 | ... response.getHeader('Location')).jsonBody() |
1319 | - >>> print(new_permission['self_link']) |
1320 | + >>> print(new_permission['self_link']) # noqa |
1321 | http://.../ubuntu/+archive/primary/+upload/name12?type=packagename&item=mozilla-firefox |
1322 | |
1323 | >>> show_mozilla_permissions() |
1324 | @@ -468,7 +468,7 @@ component. |
1325 | |
1326 | >>> new_permission = user_webservice.get( |
1327 | ... response.getHeader('Location')).jsonBody() |
1328 | - >>> print(new_permission['self_link']) |
1329 | + >>> print(new_permission['self_link']) # noqa |
1330 | http://.../ubuntu/+archive/primary/+upload/name12?type=component&item=restricted |
1331 | |
1332 | >>> show_component_permissions() |
1333 | @@ -599,7 +599,7 @@ queues in a particular component. |
1334 | |
1335 | >>> new_permission = ubuntu_owner_webservice.get( |
1336 | ... response.getHeader('Location')).jsonBody() |
1337 | - >>> print(new_permission['self_link']) |
1338 | + >>> print(new_permission['self_link']) # noqa |
1339 | http://.../ubuntu/+archive/primary/+queue-admin/name12?type=component&item=partner |
1340 | |
1341 | >>> show_components_for_admin(name12) |
1342 | @@ -658,7 +658,7 @@ newPocketUploader adds a new permission for a person to upload to a pocket. |
1343 | |
1344 | >>> new_permission = user_webservice.get( |
1345 | ... response.getHeader('Location')).jsonBody() |
1346 | - >>> print(new_permission['self_link']) |
1347 | + >>> print(new_permission['self_link']) # noqa |
1348 | http://.../ubuntu/+archive/primary/+upload/name12?type=pocket&item=PROPOSED |
1349 | |
1350 | >>> show_pocket_permissions('Proposed') |
1351 | @@ -737,7 +737,7 @@ distroseries queues in a particular pocket. |
1352 | |
1353 | >>> new_permission = ubuntu_owner_webservice.get( |
1354 | ... response.getHeader('Location')).jsonBody() |
1355 | - >>> print(new_permission['self_link']) |
1356 | + >>> print(new_permission['self_link']) # noqa |
1357 | http://.../ubuntu/+archive/primary/+queue-admin/name12?type=pocket&item=SECURITY |
1358 | |
1359 | >>> show_pockets_for_admin(name12) |
1360 | @@ -762,9 +762,9 @@ It can also grant series-specific pocket queue admin permissions. |
1361 | HTTP/1.1 201 Created |
1362 | ... |
1363 | |
1364 | - >>> print(new_permissions[0]['self_link']) |
1365 | + >>> print(new_permissions[0]['self_link']) # noqa |
1366 | http://.../ubuntu/+archive/primary/+queue-admin/ubuntu-owner?type=pocket&item=SECURITY&series=hoary |
1367 | - >>> print(new_permissions[1]['self_link']) |
1368 | + >>> print(new_permissions[1]['self_link']) # noqa |
1369 | http://.../ubuntu/+archive/primary/+queue-admin/ubuntu-owner?type=pocket&item=SECURITY&series=grumpy |
1370 | |
1371 | >>> show_pockets_for_admin(ubuntu_owner_ws) |
1372 | diff --git a/lib/lp/soyuz/stories/webservice/xx-binary-package-publishing.txt b/lib/lp/soyuz/stories/webservice/xx-binary-package-publishing.txt |
1373 | index 3529000..59991fc 100644 |
1374 | --- a/lib/lp/soyuz/stories/webservice/xx-binary-package-publishing.txt |
1375 | +++ b/lib/lp/soyuz/stories/webservice/xx-binary-package-publishing.txt |
1376 | @@ -190,6 +190,7 @@ Detailed download counts are also available from the getDownloadCounts method. |
1377 | A detailed count object can be retrieved by its URL. |
1378 | |
1379 | >>> pprint_entry(webservice.get(counts[1]['self_link']).jsonBody()) |
1380 | + ... # noqa |
1381 | archive_link: 'http://.../~cprov/+archive/ubuntu/ppa' |
1382 | binary_package_name: 'mozilla-firefox' |
1383 | binary_package_version: '1.0' |
1384 | @@ -208,6 +209,7 @@ We can also filter by date. |
1385 | 1 |
1386 | |
1387 | >>> pprint_entry(webservice.get(counts[0]['self_link']).jsonBody()) |
1388 | + ... # noqa |
1389 | archive_link: 'http://.../~cprov/+archive/ubuntu/ppa' |
1390 | binary_package_name: 'mozilla-firefox' |
1391 | binary_package_version: '1.0' |
1392 | diff --git a/lib/lp/soyuz/stories/webservice/xx-builds.txt b/lib/lp/soyuz/stories/webservice/xx-builds.txt |
1393 | index 7f72ed7..1e7a44a 100644 |
1394 | --- a/lib/lp/soyuz/stories/webservice/xx-builds.txt |
1395 | +++ b/lib/lp/soyuz/stories/webservice/xx-builds.txt |
1396 | @@ -43,7 +43,7 @@ Retrieve a source publication: |
1397 | of properties: |
1398 | |
1399 | >>> from lazr.restful.testing.webservice import pprint_entry |
1400 | - >>> pprint_entry(builds['entries'][0]) |
1401 | + >>> pprint_entry(builds['entries'][0]) # noqa |
1402 | arch_tag: 'i386' |
1403 | archive_link: 'http://.../beta/~cprov/+archive/ubuntu/ppa' |
1404 | builder_link: 'http://.../beta/builders/bob' |
1405 | @@ -76,7 +76,7 @@ Whereas the 1.0 webservice for builds maintains the old property names |
1406 | |
1407 | >>> builds_1_0 = webservice.named_get( |
1408 | ... source_pub['self_link'].replace('beta', '1.0'), 'getBuilds') |
1409 | - >>> pprint_entry(builds_1_0.jsonBody()['entries'][0]) |
1410 | + >>> pprint_entry(builds_1_0.jsonBody()['entries'][0]) # noqa |
1411 | arch_tag: 'i386' |
1412 | archive_link: 'http://.../~cprov/+archive/ubuntu/ppa' |
1413 | build_log_url: |
1414 | @@ -108,7 +108,7 @@ devel webservice also contains build date_started and duration. |
1415 | |
1416 | >>> builds_devel = webservice.named_get( |
1417 | ... source_pub['self_link'].replace('beta', 'devel'), 'getBuilds') |
1418 | - >>> pprint_entry(builds_devel.jsonBody()['entries'][0]) |
1419 | + >>> pprint_entry(builds_devel.jsonBody()['entries'][0]) # noqa |
1420 | arch_tag: 'i386' |
1421 | archive_link: 'http://.../~cprov/+archive/ubuntu/ppa' |
1422 | build_log_url: |
1423 | diff --git a/lib/lp/soyuz/stories/webservice/xx-packageset.txt b/lib/lp/soyuz/stories/webservice/xx-packageset.txt |
1424 | index 499d671..2ac46ec 100644 |
1425 | --- a/lib/lp/soyuz/stories/webservice/xx-packageset.txt |
1426 | +++ b/lib/lp/soyuz/stories/webservice/xx-packageset.txt |
1427 | @@ -594,7 +594,7 @@ Let's see what we've got: |
1428 | |
1429 | >>> new_permission = webservice.get( |
1430 | ... response.getHeader('Location')).jsonBody() |
1431 | - >>> pprint_entry(new_permission) |
1432 | + >>> pprint_entry(new_permission) # noqa |
1433 | archive_link: 'http://.../+archive/primary' |
1434 | component_name: None |
1435 | date_created: ... |
1436 | @@ -624,7 +624,7 @@ package set since we're disallowing the use of the package set hierarchy. |
1437 | >>> response = webservice.named_get( |
1438 | ... ubuntu['main_archive_link'], 'getUploadersForPackageset', {}, |
1439 | ... packageset=firefox['self_link']) |
1440 | - >>> print_payload(response) |
1441 | + >>> print_payload(response) # noqa |
1442 | http://.../+archive/primary/+upload/name12?type=packageset&item=firefox&series=hoary |
1443 | |
1444 | Same query, this time allowing the use of the package set hierarchy, finds |
1445 | @@ -633,7 +633,7 @@ the permission for the 'mozilla' package set as well. |
1446 | >>> response = webservice.named_get( |
1447 | ... ubuntu['main_archive_link'], 'getUploadersForPackageset', {}, |
1448 | ... packageset=firefox['self_link'], direct_permissions=False) |
1449 | - >>> print_payload(response) |
1450 | + >>> print_payload(response) # noqa |
1451 | http://.../+archive/primary/+upload/name12?type=packageset&item=firefox&series=hoary |
1452 | http://.../+archive/primary/+upload/name12?type=packageset&item=mozilla&series=hoary |
1453 | |
1454 | @@ -653,7 +653,7 @@ shows only the remaining permission for the 'firefox' package set. |
1455 | >>> response = webservice.named_get( |
1456 | ... ubuntu['main_archive_link'], 'getUploadersForPackageset', {}, |
1457 | ... packageset=firefox['self_link'], direct_permissions=False) |
1458 | - >>> print_payload(response) |
1459 | + >>> print_payload(response) # noqa |
1460 | http://.../+archive/primary/+upload/name12?type=packageset&item=firefox&series=hoary |
1461 | |
1462 | Let's grant 'cprov' an upload permission to 'mozilla' and 'thunderbird'. |
1463 | @@ -680,7 +680,7 @@ We can view the package set based permissions granted to 'cprov' as follows: |
1464 | >>> response = webservice.named_get( |
1465 | ... ubuntu['main_archive_link'], 'getPackagesetsForUploader', {}, |
1466 | ... person=cprov['self_link']) |
1467 | - >>> print_payload(response) |
1468 | + >>> print_payload(response) # noqa |
1469 | http://.../+archive/primary/+upload/cprov?type=packageset&item=mozilla&series=hoary |
1470 | http://.../+archive/primary/+upload/cprov?type=packageset&item=thunderbird&series=hoary |
1471 | |
1472 | @@ -691,7 +691,7 @@ Let's check what package set based upload permissions 'cprov' has for the |
1473 | ... ubuntu['main_archive_link'], 'getPackagesetsForSourceUploader', |
1474 | ... {}, sourcepackagename='thunderbird', |
1475 | ... person=cprov['self_link']) |
1476 | - >>> print_payload(response) |
1477 | + >>> print_payload(response) # noqa |
1478 | http://.../+archive/primary/+upload/cprov?type=packageset&item=mozilla&series=hoary |
1479 | http://.../+archive/primary/+upload/cprov?type=packageset&item=thunderbird&series=hoary |
1480 | |
1481 | @@ -706,7 +706,7 @@ to it? |
1482 | ... ubuntu['main_archive_link'], 'getPackagesetsForSourceUploader', |
1483 | ... {}, sourcepackagename='mozilla-firefox', |
1484 | ... person=cprov['self_link']) |
1485 | - >>> print_payload(response) |
1486 | + >>> print_payload(response) # noqa |
1487 | http://.../+archive/primary/+upload/cprov?type=packageset&item=mozilla&series=hoary |
1488 | |
1489 | Yes, and, again via the 'mozilla' package set. |
1490 | @@ -824,7 +824,7 @@ Does the new archive permission show up? |
1491 | >>> response = webservice.named_get( |
1492 | ... ubuntu['main_archive_link'], 'getPackagesetsForUploader', {}, |
1493 | ... person=name12['self_link']) |
1494 | - >>> print_payload(response) |
1495 | + >>> print_payload(response) # noqa |
1496 | http://...+archive/primary/+upload/name12?type=packageset&item=firefox&series=hoary |
1497 | http://...+archive/primary/+upload/name12?type=packageset&item=thunderbird&series=grumpy |
1498 | |
1499 | @@ -846,7 +846,7 @@ permissions apply to a source package irrespective of the principal. |
1500 | >>> response = webservice.named_get( |
1501 | ... ubuntu['main_archive_link'], 'getPackagesetsForSource', |
1502 | ... {}, sourcepackagename='mozilla-firefox') |
1503 | - >>> print_payload(response) |
1504 | + >>> print_payload(response) # noqa |
1505 | http://.../+archive/primary/+upload/name12?type=packageset&item=firefox&series=hoary |
1506 | |
1507 | The listing above only shows the *direct* upload permission granted to |
1508 | @@ -858,7 +858,7 @@ permissions arising from the package set hierarchy as well. |
1509 | >>> response = webservice.named_get( |
1510 | ... ubuntu['main_archive_link'], 'getPackagesetsForSource', |
1511 | ... {}, sourcepackagename='mozilla-firefox', direct_permissions=False) |
1512 | - >>> print_payload(response) |
1513 | + >>> print_payload(response) # noqa |
1514 | http://.../+archive/primary/+upload/name12?type=packageset&item=firefox&series=hoary |
1515 | http://.../+archive/primary/+upload/cprov?type=packageset&item=mozilla&series=hoary |
1516 | |
1517 | diff --git a/lib/lp/soyuz/stories/webservice/xx-source-package-publishing.txt b/lib/lp/soyuz/stories/webservice/xx-source-package-publishing.txt |
1518 | index c75f1d6..10cc3f5 100644 |
1519 | --- a/lib/lp/soyuz/stories/webservice/xx-source-package-publishing.txt |
1520 | +++ b/lib/lp/soyuz/stories/webservice/xx-source-package-publishing.txt |
1521 | @@ -149,6 +149,7 @@ publication to play with first. |
1522 | |
1523 | >>> print(webservice.named_get( |
1524 | ... pubs['entries'][0]['self_link'], 'changesFileUrl').jsonBody()) |
1525 | + ... # noqa |
1526 | http://.../~cprov/+archive/ubuntu/ppa/+files/testwebservice_666_source.changes |
1527 | |
1528 | |
1529 | @@ -376,7 +377,7 @@ for this package: |
1530 | ... entry['self_link'] for entry in pubs['entries']): |
1531 | ... source_urls = webservice.named_get( |
1532 | ... pub_link, 'sourceFileUrls').jsonBody() |
1533 | - ... print(pretty(source_urls)) |
1534 | + ... print(pretty(source_urls)) # noqa |
1535 | ['http://.../~cprov/+archive/ubuntu/ppa/+sourcefiles/cdrkit/1.0/foobar-1.0.dsc'] |
1536 | ['http://.../~cprov/+archive/ubuntu/ppa/+sourcefiles/iceweasel/1.0/firefox_0.9.2.orig.tar.gz', |
1537 | 'http://.../~cprov/+archive/ubuntu/ppa/+sourcefiles/iceweasel/1.0/iceweasel-1.0.dsc'] |
1538 | @@ -389,7 +390,7 @@ binaryFileUrls() is similar: |
1539 | ... entry['self_link'] for entry in pubs['entries']): |
1540 | ... binary_urls = webservice.named_get( |
1541 | ... pub_link, 'binaryFileUrls').jsonBody() |
1542 | - ... print(pretty(binary_urls)) |
1543 | + ... print(pretty(binary_urls)) # noqa |
1544 | [] |
1545 | ['http://.../~cprov/+archive/ubuntu/ppa/+files/mozilla-firefox_0.9_i386.deb'] |
1546 | [] |
1547 | diff --git a/lib/lp/translations/doc/potemplate.txt b/lib/lp/translations/doc/potemplate.txt |
1548 | index 3a4fc80..3f91d27 100644 |
1549 | --- a/lib/lp/translations/doc/potemplate.txt |
1550 | +++ b/lib/lp/translations/doc/potemplate.txt |
1551 | @@ -294,7 +294,7 @@ Templates can be exported to its native format. |
1552 | ... if 'X-Launchpad-Export-Date' in line: |
1553 | ... # Avoid a time bomb in our tests and ignore this field. |
1554 | ... continue |
1555 | - ... print(line) |
1556 | + ... print(line) # noqa |
1557 | #, fuzzy |
1558 | msgid "" |
1559 | msgstr "" |
1560 | diff --git a/lib/lp/translations/stories/distroseries/xx-distroseries-language-packs.txt b/lib/lp/translations/stories/distroseries/xx-distroseries-language-packs.txt |
1561 | index 167459c..62ed7b8 100644 |
1562 | --- a/lib/lp/translations/stories/distroseries/xx-distroseries-language-packs.txt |
1563 | +++ b/lib/lp/translations/stories/distroseries/xx-distroseries-language-packs.txt |
1564 | @@ -153,5 +153,5 @@ URL uses '+latest-full-language-pack'. |
1565 | |
1566 | >>> print(browser.getLink('2007-09-10 19:15:01 UTC').url) |
1567 | http.../72/ubuntu-hoary-translations-update.tar.gz |
1568 | - >>> print(browser.getLink('2007-09-10 19:15:19 UTC').url) |
1569 | + >>> print(browser.getLink('2007-09-10 19:15:19 UTC').url) # noqa |
1570 | http://translations.launchpad.test/ubuntu/hoary/+latest-delta-language-pack |
1571 | diff --git a/lib/lp/translations/stories/importqueue/xx-translation-import-queue.txt b/lib/lp/translations/stories/importqueue/xx-translation-import-queue.txt |
1572 | index 04ffefa..15c7a95 100644 |
1573 | --- a/lib/lp/translations/stories/importqueue/xx-translation-import-queue.txt |
1574 | +++ b/lib/lp/translations/stories/importqueue/xx-translation-import-queue.txt |
1575 | @@ -116,7 +116,7 @@ Now, we attach a new file to an already existing translation resource. |
1576 | >>> upload.add_file(BytesIO(b'# foo\n'), |
1577 | ... 'text/x-gettext-translation-template', 'evolution.pot') |
1578 | >>> browser.getControl('Upload').click() |
1579 | - >>> print(browser.url) |
1580 | + >>> print(browser.url) # noqa |
1581 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/+upload |
1582 | >>> for tag in find_tags_by_class(browser.contents, 'message'): |
1583 | ... print(tag.decode_contents()) |
1584 | diff --git a/lib/lp/translations/stories/navigation-links/pofile.txt b/lib/lp/translations/stories/navigation-links/pofile.txt |
1585 | index a69c22f..351b23e 100644 |
1586 | --- a/lib/lp/translations/stories/navigation-links/pofile.txt |
1587 | +++ b/lib/lp/translations/stories/navigation-links/pofile.txt |
1588 | @@ -27,7 +27,7 @@ Taking an IPOFile for ISourcePackage context: |
1589 | >>> admin_browser.open( |
1590 | ... 'http://translations.launchpad.test/ubuntu/hoary/+source/' |
1591 | ... 'evolution/+pots/evolution-2.2/es') |
1592 | - >>> print(admin_browser.url) |
1593 | + >>> print(admin_browser.url) # noqa |
1594 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es |
1595 | |
1596 | The Application tabs should point to IDistributionSourcePackage URLs. |
1597 | diff --git a/lib/lp/translations/stories/navigation-links/pomsgset.txt b/lib/lp/translations/stories/navigation-links/pomsgset.txt |
1598 | index d561963..be7fe16 100644 |
1599 | --- a/lib/lp/translations/stories/navigation-links/pomsgset.txt |
1600 | +++ b/lib/lp/translations/stories/navigation-links/pomsgset.txt |
1601 | @@ -10,7 +10,7 @@ Taking an IPOMsgSet for IProductSeries context: |
1602 | We get a +translate page because that's the only page for an IPOMsgSet and the |
1603 | system forwards automatically there. |
1604 | |
1605 | - >>> print(browser.url) |
1606 | + >>> print(browser.url) # noqa |
1607 | http://translations.launchpad.test/evolution/trunk/+pots/evolution-2.2/es/1/+translate |
1608 | |
1609 | The Application tabs should point to IProductSeries URLs. |
1610 | @@ -32,7 +32,7 @@ Taking an IPOMsgSet for ISourcePackage context: |
1611 | We get a +translate page because that's the only page for an IPOMsgSet and the |
1612 | system forwards automatically there. |
1613 | |
1614 | - >>> print(browser.url) |
1615 | + >>> print(browser.url) # noqa |
1616 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/1/+translate |
1617 | |
1618 | The Application tabs should point to ISourcePackage URLs. |
1619 | diff --git a/lib/lp/translations/stories/navigation-links/potemplate.txt b/lib/lp/translations/stories/navigation-links/potemplate.txt |
1620 | index 164754b..bd2015f 100644 |
1621 | --- a/lib/lp/translations/stories/navigation-links/potemplate.txt |
1622 | +++ b/lib/lp/translations/stories/navigation-links/potemplate.txt |
1623 | @@ -24,7 +24,7 @@ Taking an IPOTemplate for ISourcePackage context: |
1624 | >>> admin_browser.open( |
1625 | ... 'http://translations.launchpad.test/ubuntu/hoary/+source/' |
1626 | ... 'evolution/+pots/evolution-2.2') |
1627 | - >>> print(admin_browser.url) |
1628 | + >>> print(admin_browser.url) # noqa |
1629 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2 |
1630 | |
1631 | The Application tabs should point to IDistributionSourcePackage URLs. |
1632 | diff --git a/lib/lp/translations/stories/productseries/xx-productseries-translations.txt b/lib/lp/translations/stories/productseries/xx-productseries-translations.txt |
1633 | index b2b562c..5ce1df9 100644 |
1634 | --- a/lib/lp/translations/stories/productseries/xx-productseries-translations.txt |
1635 | +++ b/lib/lp/translations/stories/productseries/xx-productseries-translations.txt |
1636 | @@ -88,7 +88,7 @@ count links to the correctly filtered PO file pages. |
1637 | >>> logout() |
1638 | |
1639 | >>> browser.open(frobnicator_trunk_url) |
1640 | - >>> print_language_stats(browser) |
1641 | + >>> print_language_stats(browser) # noqa |
1642 | Language Untranslated Unreviewed |
1643 | Serbian 6 5 |
1644 | Untranslated link: /frobnicator/trunk/+pots/template1/sr/+translate?show=untranslated |
1645 | @@ -391,4 +391,5 @@ page togheter with link for uploading a template from that series |
1646 | |
1647 | >>> print(admin_browser.getLink( |
1648 | ... 'automatic', url='/evolution/evo-new/+translations-settings').url) |
1649 | + ... # noqa |
1650 | http://translations.launchpad.test/evolution/evo-new/+translations-settings |
1651 | diff --git a/lib/lp/translations/stories/standalone/xx-language.txt b/lib/lp/translations/stories/standalone/xx-language.txt |
1652 | index 25dfa68..438f687 100644 |
1653 | --- a/lib/lp/translations/stories/standalone/xx-language.txt |
1654 | +++ b/lib/lp/translations/stories/standalone/xx-language.txt |
1655 | @@ -98,7 +98,7 @@ From the top languages page, anyone can find languages. |
1656 | >>> text_search = browser.getControl(name='field.search_lang') |
1657 | >>> text_search.value = 'Spanish' |
1658 | >>> browser.getControl('Find language', index=0).click() |
1659 | - >>> print(browser.url) |
1660 | + >>> print(browser.url) # noqa |
1661 | http://translations.launchpad.test/+languages/+index?field.search_lang=Spanish |
1662 | |
1663 | |
1664 | diff --git a/lib/lp/translations/stories/standalone/xx-pofile-auto-alt-languages.txt b/lib/lp/translations/stories/standalone/xx-pofile-auto-alt-languages.txt |
1665 | index add4f2d..a5ccfeb 100644 |
1666 | --- a/lib/lp/translations/stories/standalone/xx-pofile-auto-alt-languages.txt |
1667 | +++ b/lib/lp/translations/stories/standalone/xx-pofile-auto-alt-languages.txt |
1668 | @@ -11,7 +11,7 @@ should have the Spanish language selected as its alternate, by default. |
1669 | >>> browser.open( |
1670 | ... 'http://translations.launchpad.test/evolution/trunk/+pots/' |
1671 | ... 'evolution-2.2/es_MX/+translate') |
1672 | - >>> print(browser.url) |
1673 | + >>> print(browser.url) # noqa |
1674 | http://translations.launchpad.test/evolution/trunk/+pots/evolution-2.2/es_MX/+translate |
1675 | |
1676 | >>> browser.getControl(name='field.alternative_language', index=0).value |
1677 | @@ -23,7 +23,7 @@ not show pt by default for pt_BR translators: |
1678 | >>> browser.open( |
1679 | ... 'http://translations.launchpad.test/evolution/trunk/+pots/' |
1680 | ... 'evolution-2.2/pt_BR/+translate') |
1681 | - >>> print(browser.url) |
1682 | + >>> print(browser.url) # noqa |
1683 | http://translations.launchpad.test/evolution/trunk/+pots/evolution-2.2/pt_BR/+translate |
1684 | |
1685 | >>> browser.getControl(name='field.alternative_language', index=0).value |
1686 | @@ -35,7 +35,7 @@ French! |
1687 | >>> browser.open( |
1688 | ... 'http://translations.launchpad.test/evolution/trunk/+pots/' |
1689 | ... 'evolution-2.2/fr/+translate') |
1690 | - >>> print(browser.url) |
1691 | + >>> print(browser.url) # noqa |
1692 | http://translations.launchpad.test/evolution/trunk/+pots/evolution-2.2/fr/+translate |
1693 | |
1694 | >>> browser.getControl(name='field.alternative_language', index=0).value |
1695 | diff --git a/lib/lp/translations/stories/standalone/xx-pofile-translate-empty-strings-without-validation.txt b/lib/lp/translations/stories/standalone/xx-pofile-translate-empty-strings-without-validation.txt |
1696 | index 497cf73..5a9552e 100644 |
1697 | --- a/lib/lp/translations/stories/standalone/xx-pofile-translate-empty-strings-without-validation.txt |
1698 | +++ b/lib/lp/translations/stories/standalone/xx-pofile-translate-empty-strings-without-validation.txt |
1699 | @@ -27,5 +27,5 @@ Submit the form. |
1700 | We should be redirected to the next page because the validation didn't get |
1701 | it as an error. |
1702 | |
1703 | - >>> print(browser.url) |
1704 | + >>> print(browser.url) # noqa |
1705 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?batch=1&memo=13&start=13 |
1706 | diff --git a/lib/lp/translations/stories/standalone/xx-pofile-translate-gettext-error-middle-page.txt b/lib/lp/translations/stories/standalone/xx-pofile-translate-gettext-error-middle-page.txt |
1707 | index 553f9d6..010c251 100644 |
1708 | --- a/lib/lp/translations/stories/standalone/xx-pofile-translate-gettext-error-middle-page.txt |
1709 | +++ b/lib/lp/translations/stories/standalone/xx-pofile-translate-gettext-error-middle-page.txt |
1710 | @@ -32,7 +32,7 @@ And submit the form. |
1711 | |
1712 | We remain at the same page: |
1713 | |
1714 | - >>> print(browser.url) |
1715 | + >>> print(browser.url) # noqa |
1716 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?start=10&batch=5 |
1717 | |
1718 | The valid translation is stored: |
1719 | diff --git a/lib/lp/translations/stories/standalone/xx-pofile-translate-html-tags-escape.txt b/lib/lp/translations/stories/standalone/xx-pofile-translate-html-tags-escape.txt |
1720 | index 91b15e0..f977e54 100644 |
1721 | --- a/lib/lp/translations/stories/standalone/xx-pofile-translate-html-tags-escape.txt |
1722 | +++ b/lib/lp/translations/stories/standalone/xx-pofile-translate-html-tags-escape.txt |
1723 | @@ -20,7 +20,7 @@ textarea, and |
1724 | |
1725 | We are in next form page. |
1726 | |
1727 | - >>> print(user_browser.url) |
1728 | + >>> print(user_browser.url) # noqa |
1729 | http://translations.launchpad.test/ubuntu/hoary/+source/pmount/+pots/pmount/hr/+translate?memo=10&start=10 |
1730 | |
1731 | Let's go back to the modified message. |
1732 | diff --git a/lib/lp/translations/stories/standalone/xx-pofile-translate-needs-review-flags-preserved.txt b/lib/lp/translations/stories/standalone/xx-pofile-translate-needs-review-flags-preserved.txt |
1733 | index 3f79034..cab3aef 100644 |
1734 | --- a/lib/lp/translations/stories/standalone/xx-pofile-translate-needs-review-flags-preserved.txt |
1735 | +++ b/lib/lp/translations/stories/standalone/xx-pofile-translate-needs-review-flags-preserved.txt |
1736 | @@ -41,7 +41,7 @@ a translator needs to mark the needs review checkbox. |
1737 | >>> user_browser.getControl( |
1738 | ... name='msgset_130_es_translation_0_new').value = "New suggestion" |
1739 | >>> user_browser.getControl('Save & Continue').click() |
1740 | - >>> print(user_browser.url) |
1741 | + >>> print(user_browser.url) # noqa |
1742 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/2/+translate |
1743 | |
1744 | The needs review flag is unset when we go back to the previous message. |
1745 | diff --git a/lib/lp/translations/stories/standalone/xx-pofile-translate-newlines-check.txt b/lib/lp/translations/stories/standalone/xx-pofile-translate-newlines-check.txt |
1746 | index d92801d..1ee8394 100644 |
1747 | --- a/lib/lp/translations/stories/standalone/xx-pofile-translate-newlines-check.txt |
1748 | +++ b/lib/lp/translations/stories/standalone/xx-pofile-translate-newlines-check.txt |
1749 | @@ -41,7 +41,7 @@ answer should have exactly those strings. |
1750 | >>> browser.getControl( |
1751 | ... name='msgset_149_es_translation_0_new').value = '\r\nfoo\r\n\r\n' |
1752 | >>> browser.getControl(name='submit_translations').click() |
1753 | - >>> print(browser.url) |
1754 | + >>> print(browser.url) # noqa |
1755 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?start=19&batch=1 |
1756 | >>> print(find_tag_by_id( |
1757 | ... browser.contents, 'msgset_149_es_translation_0_new')) |
1758 | @@ -61,7 +61,7 @@ change the test, to be 100% sure that the textarea content is the right one. |
1759 | >>> browser.getControl(name='msgset_149_es_translation_0_new').value = ( |
1760 | ... 'foo') |
1761 | >>> browser.getControl(name='submit_translations').click() |
1762 | - >>> print(browser.url) |
1763 | + >>> print(browser.url) # noqa |
1764 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?start=19&batch=1 |
1765 | >>> print(find_tag_by_id( |
1766 | ... browser.contents, |
1767 | @@ -85,7 +85,7 @@ Launchpad adds it automatically. |
1768 | |
1769 | We were redirected to the next form, the translation was accepted. |
1770 | |
1771 | - >>> print(browser.url) |
1772 | + >>> print(browser.url) # noqa |
1773 | http://translations.launchpad.test/evolution/trunk/+pots/evolution-2.2/es/+translate?batch=1 |
1774 | |
1775 | Get previous page to check that the save translation is the right one. |
1776 | @@ -116,7 +116,7 @@ Now, we do the right submit, with one trailing new line... |
1777 | |
1778 | We were redirected to the next form, the translation was accepted. |
1779 | |
1780 | - >>> print(browser.url) |
1781 | + >>> print(browser.url) # noqa |
1782 | http://translations.launchpad.test/evolution/trunk/+pots/evolution-2.2/es/+translate?batch=1 |
1783 | |
1784 | Get previous page to check that the save translation is the right one. |
1785 | @@ -147,7 +147,7 @@ Last check, the user sends two new line chars instead of just one... |
1786 | |
1787 | We were redirected to the next form, the translation was accepted. |
1788 | |
1789 | - >>> print(browser.url) |
1790 | + >>> print(browser.url) # noqa |
1791 | http://translations.launchpad.test/evolution/trunk/+pots/evolution-2.2/es/+translate?batch=1 |
1792 | |
1793 | Get previous page to check that the save translation is the right one. |
1794 | diff --git a/lib/lp/translations/stories/standalone/xx-pofile-translate-performance.txt b/lib/lp/translations/stories/standalone/xx-pofile-translate-performance.txt |
1795 | index ed6edf8..f8882b6 100644 |
1796 | --- a/lib/lp/translations/stories/standalone/xx-pofile-translate-performance.txt |
1797 | +++ b/lib/lp/translations/stories/standalone/xx-pofile-translate-performance.txt |
1798 | @@ -20,7 +20,7 @@ this test a tripwire for the number potentially getting out of hand. |
1799 | >>> anon_browser.open( |
1800 | ... 'http://translations.launchpad.test/ubuntu/hoary/+source/' |
1801 | ... 'evolution/+pots/evolution-2.2/es/+translate') |
1802 | - >>> anon_browser.url |
1803 | + >>> anon_browser.url # noqa |
1804 | 'http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate' |
1805 | >>> print(anon_browser.contents) |
1806 | <... |
1807 | @@ -38,7 +38,7 @@ queries, but it still shouldn't run in the hundreds. |
1808 | >>> admin_browser.open( |
1809 | ... 'http://translations.launchpad.test/ubuntu/hoary/+source/' |
1810 | ... 'evolution/+pots/evolution-2.2/es/+translate') |
1811 | - >>> admin_browser.url |
1812 | + >>> admin_browser.url # noqa |
1813 | 'http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate' |
1814 | |
1815 | XXX: JeroenVermeulen 2008-06-20 bug=241394: This has just started |
1816 | diff --git a/lib/lp/translations/stories/standalone/xx-potemplate-export.txt b/lib/lp/translations/stories/standalone/xx-potemplate-export.txt |
1817 | index 54dfa56..4b69f55 100644 |
1818 | --- a/lib/lp/translations/stories/standalone/xx-potemplate-export.txt |
1819 | +++ b/lib/lp/translations/stories/standalone/xx-potemplate-export.txt |
1820 | @@ -47,7 +47,7 @@ added to the export queue and individual requests are added for the PO files. |
1821 | >>> browser.getControl('Everything').selected = True |
1822 | >>> browser.getControl('Format:').value = ['PO'] |
1823 | >>> browser.getControl('Request Download').click() |
1824 | - >>> print(browser.url) |
1825 | + >>> print(browser.url) # noqa |
1826 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2 |
1827 | |
1828 | >>> print_feedback_messages(browser.contents) |
1829 | @@ -62,7 +62,7 @@ This is a no-op: (See bug https://launchpad.net/rosetta/+bug/1558) |
1830 | >>> browser.getControl('The PO template').selected = True |
1831 | >>> browser.getControl('Format:').value = ['PO'] |
1832 | >>> browser.getControl('Request Download').click() |
1833 | - >>> print(browser.url) |
1834 | + >>> print(browser.url) # noqa |
1835 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2 |
1836 | |
1837 | >>> print_feedback_messages(browser.contents) |
1838 | diff --git a/lib/lp/translations/stories/standalone/xx-series-templates.txt b/lib/lp/translations/stories/standalone/xx-series-templates.txt |
1839 | index 3fe1eeb..e9658b0 100644 |
1840 | --- a/lib/lp/translations/stories/standalone/xx-series-templates.txt |
1841 | +++ b/lib/lp/translations/stories/standalone/xx-series-templates.txt |
1842 | @@ -127,7 +127,7 @@ Clicking on a template name will take the user to that template's overview |
1843 | page. |
1844 | |
1845 | >>> admin_browser.getLink('pmount').click() |
1846 | - >>> print(admin_browser.url) |
1847 | + >>> print(admin_browser.url) # noqa |
1848 | http://translations.launchpad.test/ubuntu/hoary/+source/pmount/+pots/pmount |
1849 | |
1850 | Clicking on 'Edit' will take the user to the page to edit the template |
1851 | diff --git a/lib/lp/translations/stories/standalone/xx-translation-credits.txt b/lib/lp/translations/stories/standalone/xx-translation-credits.txt |
1852 | index f3a3237..6e73ebd 100644 |
1853 | --- a/lib/lp/translations/stories/standalone/xx-translation-credits.txt |
1854 | +++ b/lib/lp/translations/stories/standalone/xx-translation-credits.txt |
1855 | @@ -60,7 +60,7 @@ displayed credits once we submit the translation. |
1856 | ... name='msgset_198_sr_translation_0_new') |
1857 | >>> inputfield.value = 'Test translation' |
1858 | >>> browser.getControl('Save & Continue').click() |
1859 | - >>> print(browser.url) |
1860 | + >>> print(browser.url) # noqa |
1861 | http://translations.launchpad.test/alsa-utils/trunk/+pots/alsa-utils/sr/+translate |
1862 | |
1863 | Translation has been updated. |
1864 | diff --git a/lib/lp/translations/stories/translationgroups/xx-translationgroups.txt b/lib/lp/translations/stories/translationgroups/xx-translationgroups.txt |
1865 | index cd31e56..8286bfc 100644 |
1866 | --- a/lib/lp/translations/stories/translationgroups/xx-translationgroups.txt |
1867 | +++ b/lib/lp/translations/stories/translationgroups/xx-translationgroups.txt |
1868 | @@ -1138,7 +1138,7 @@ cannot be handled. |
1869 | >>> upload = admin_browser.getControl(name='file') |
1870 | >>> upload.add_file(BytesIO(af_file), 'application/msword', 'af.doc') |
1871 | >>> admin_browser.getControl('Upload').click() |
1872 | - >>> print(admin_browser.url) |
1873 | + >>> print(admin_browser.url) # noqa |
1874 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/af/+upload |
1875 | |
1876 | >>> for tag in find_tags_by_class(admin_browser.contents, 'error'): |
1877 | @@ -1151,7 +1151,7 @@ With all the correct information, a file can be uploaded. |
1878 | >>> upload = admin_browser.getControl(name='file') |
1879 | >>> upload.add_file(BytesIO(af_file), 'application/x-po', 'af.po') |
1880 | >>> admin_browser.getControl('Upload').click() |
1881 | - >>> print(admin_browser.url) |
1882 | + >>> print(admin_browser.url) # noqa |
1883 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/af/+upload |
1884 | |
1885 | >>> for tag in find_tags_by_class(admin_browser.contents, 'message'): |
1886 | diff --git a/lib/lp/translations/stories/translations/xx-translations.txt b/lib/lp/translations/stories/translations/xx-translations.txt |
1887 | index 377a9bf..9c26cb1 100644 |
1888 | --- a/lib/lp/translations/stories/translations/xx-translations.txt |
1889 | +++ b/lib/lp/translations/stories/translations/xx-translations.txt |
1890 | @@ -134,9 +134,9 @@ pofile) for evolution-2.2 |
1891 | True |
1892 | >>> six.ensure_str('Translatable templates') in browser.contents |
1893 | True |
1894 | - >>> print(browser.getLink('evolution-2.2').url) |
1895 | + >>> print(browser.getLink('evolution-2.2').url) # noqa |
1896 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/hr/+translate |
1897 | - >>> print(browser.getLink('man').url) |
1898 | + >>> print(browser.getLink('man').url) # noqa |
1899 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/man/hr/+translate |
1900 | |
1901 | pmount and pkgconf-mozilla are not in this page, because it belongs to the |
1902 | @@ -157,9 +157,9 @@ Let's go to next page. |
1903 | |
1904 | Now, we have the other man and pkgconf-mozilla: |
1905 | |
1906 | - >>> print(browser.getLink('man').url) |
1907 | + >>> print(browser.getLink('man').url) # noqa |
1908 | http://translations.launchpad.test/ubuntu/hoary/+source/pmount/+pots/man/hr/+translate |
1909 | - >>> print(browser.getLink('pkgconf-mozilla').url) |
1910 | + >>> print(browser.getLink('pkgconf-mozilla').url) # noqa |
1911 | http://translations.launchpad.test/ubuntu/hoary/+source/mozilla/+pots/pkgconf-mozilla/hr/+translate |
1912 | |
1913 | Let's go to next page. |
1914 | @@ -168,7 +168,7 @@ Let's go to next page. |
1915 | |
1916 | And finally, we will get pmount. |
1917 | |
1918 | - >>> print(browser.getLink('pmount').url) |
1919 | + >>> print(browser.getLink('pmount').url) # noqa |
1920 | http://translations.launchpad.test/ubuntu/hoary/+source/pmount/+pots/pmount/hr/+translate |
1921 | |
1922 | With its latest translator. |
1923 | @@ -260,7 +260,7 @@ The template title points to the general translate page: |
1924 | >>> unfiltered = all_links[0] |
1925 | >>> print(extract_text(unfiltered)) |
1926 | evolution-2.2 |
1927 | - >>> print(extract_link_from_tag(unfiltered, base_href)) |
1928 | + >>> print(extract_link_from_tag(unfiltered, base_href)) # noqa |
1929 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate |
1930 | |
1931 | The number of untranslated entries points to the same page, which now show |
1932 | @@ -272,7 +272,7 @@ has the right filter preselected. |
1933 | 15 |
1934 | >>> untranslated_link = extract_link_from_tag(untranslated, base_href) |
1935 | >>> browser.open(untranslated_link) |
1936 | - >>> browser.url |
1937 | + >>> browser.url # noqa |
1938 | 'http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?show=untranslated' |
1939 | >>> print(browser.getControl(name='show', index=1).value) |
1940 | ['untranslated'] |
1941 | @@ -285,7 +285,7 @@ with the 'with new suggestions' filter selected. |
1942 | 1 |
1943 | >>> unreviewed_link = extract_link_from_tag(unreviewed, base_href) |
1944 | >>> browser.open(unreviewed_link) |
1945 | - >>> browser.url |
1946 | + >>> browser.url # noqa |
1947 | 'http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?show=new_suggestions' |
1948 | >>> print(browser.getControl(name='show', index=1).value) |
1949 | ['new_suggestions'] |
1950 | @@ -298,7 +298,7 @@ The number of updated entries points to the translation page with the |
1951 | 1 |
1952 | >>> updated_link = extract_link_from_tag(updated, base_href) |
1953 | >>> browser.open(updated_link) |
1954 | - >>> browser.url |
1955 | + >>> browser.url # noqa |
1956 | 'http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?show=changed_in_ubuntu' |
1957 | >>> print(browser.getControl(name='show', index=1).value) |
1958 | ['changed_in_ubuntu'] |
1959 | @@ -434,7 +434,7 @@ Language title points to the general translate page: |
1960 | >>> unfiltered = all_links[0] |
1961 | >>> print(extract_text(unfiltered)) |
1962 | Spanish |
1963 | - >>> print(extract_link_from_tag(unfiltered, base_href)) |
1964 | + >>> print(extract_link_from_tag(unfiltered, base_href)) # noqa |
1965 | http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate |
1966 | |
1967 | The number of untranslated entries points to the same page, which now shows |
1968 | @@ -446,7 +446,7 @@ the right filter preselected. |
1969 | 15 |
1970 | >>> untranslated_link = extract_link_from_tag(untranslated, base_href) |
1971 | >>> browser.open(untranslated_link) |
1972 | - >>> browser.url |
1973 | + >>> browser.url # noqa |
1974 | 'http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?show=untranslated' |
1975 | >>> print(browser.getControl(name='show', index=2).value) |
1976 | untranslated |
1977 | @@ -459,7 +459,7 @@ with the 'with new suggestions' filter selected. |
1978 | 1 |
1979 | >>> unreviewed_link = extract_link_from_tag(unreviewed, base_href) |
1980 | >>> browser.open(unreviewed_link) |
1981 | - >>> browser.url |
1982 | + >>> browser.url # noqa |
1983 | 'http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?show=new_suggestions' |
1984 | >>> print(browser.getControl(name='show', index=2).value) |
1985 | new_suggestions |
1986 | @@ -472,7 +472,7 @@ The number of updated entries points to the translation page with the |
1987 | 1 |
1988 | >>> updated_link = extract_link_from_tag(updated, base_href) |
1989 | >>> browser.open(updated_link) |
1990 | - >>> browser.url |
1991 | + >>> browser.url # noqa |
1992 | 'http://translations.launchpad.test/ubuntu/hoary/+source/evolution/+pots/evolution-2.2/es/+translate?show=changed_in_ubuntu' |
1993 | >>> print(browser.getControl(name='show', index=2).value) |
1994 | changed_in_ubuntu |
1995 | diff --git a/lib/lp/translations/utilities/doc/gettext_mo_exporter.txt b/lib/lp/translations/utilities/doc/gettext_mo_exporter.txt |
1996 | index bce7a5d..04ea523 100644 |
1997 | --- a/lib/lp/translations/utilities/doc/gettext_mo_exporter.txt |
1998 | +++ b/lib/lp/translations/utilities/doc/gettext_mo_exporter.txt |
1999 | @@ -132,7 +132,7 @@ get an export error exception: |
2000 | |
2001 | >>> mofile = compiler.compile(b''' |
2002 | ... blah |
2003 | - ... ''') |
2004 | + ... ''') # noqa |
2005 | Traceback (most recent call last): |
2006 | ... |
2007 | lp.translations.interfaces.translationexporter.UnknownTranslationExporterError: ... |
2008 | diff --git a/lib/lp/translations/utilities/doc/gettext_po_exporter.txt b/lib/lp/translations/utilities/doc/gettext_po_exporter.txt |
2009 | index 6edf323..e5c8e84 100644 |
2010 | --- a/lib/lp/translations/utilities/doc/gettext_po_exporter.txt |
2011 | +++ b/lib/lp/translations/utilities/doc/gettext_po_exporter.txt |
2012 | @@ -154,7 +154,7 @@ It's time to test the wrapping with the '-' char: |
2013 | ... TranslationConstants.SINGULAR_FORM, |
2014 | ... u"WARNUNG: Unsichere Zugriffsrechte des umgebenden Verzeichnisses" |
2015 | ... u" des Home-Verzeichnisses `%s'\n") |
2016 | - >>> print(export_translation_message(translation_message)) |
2017 | + >>> print(export_translation_message(translation_message)) # noqa |
2018 | msgid "WARNING: unsafe enclosing directory permissions on homedir `%s'\n" |
2019 | msgstr "" |
2020 | "WARNUNG: Unsichere Zugriffsrechte des umgebenden Verzeichnisses des Home-" |
2021 | diff --git a/lib/lp/translations/utilities/doc/gettext_po_parser.txt b/lib/lp/translations/utilities/doc/gettext_po_parser.txt |
2022 | index d1dd2b9..b6d933c 100644 |
2023 | --- a/lib/lp/translations/utilities/doc/gettext_po_parser.txt |
2024 | +++ b/lib/lp/translations/utilities/doc/gettext_po_parser.txt |
2025 | @@ -16,7 +16,7 @@ POParser |
2026 | PO files with empty headers are not allowed. |
2027 | |
2028 | >>> parser = POParser() |
2029 | - >>> parser.parse(b'msgid "foo"\nmsgstr ""\n') |
2030 | + >>> parser.parse(b'msgid "foo"\nmsgstr ""\n') # noqa |
2031 | Traceback (most recent call last): |
2032 | ... |
2033 | lp.translations.interfaces.translationimporter.TranslationFormatSyntaxError: ... |
2034 | @@ -24,7 +24,7 @@ PO files with empty headers are not allowed. |
2035 | PO files with context after msgids are reported as broken. |
2036 | |
2037 | >>> parser.parse(b'msgid ""\nmsgstr ""\n' |
2038 | - ... b'msgid "blah"\nmsgctxt "foo"\nmsgstr "bar"\n') |
2039 | + ... b'msgid "blah"\nmsgctxt "foo"\nmsgstr "bar"\n') # noqa |
2040 | Traceback (most recent call last): |
2041 | ... |
2042 | lp.translations.interfaces.translationimporter.TranslationFormatSyntaxError: ... |
2043 | @@ -33,7 +33,7 @@ And a msgctxt followed by msgctxt is caught as well. |
2044 | |
2045 | >>> parser.parse(b'msgid ""\nmsgstr ""\n' |
2046 | ... b'msgctxt "foo"\nmsgctxt "foo1"\n' |
2047 | - ... b'msgid "blah"\nmsgstr "bar"\n') |
2048 | + ... b'msgid "blah"\nmsgstr "bar"\n') # noqa |
2049 | Traceback (most recent call last): |
2050 | ... |
2051 | lp.translations.interfaces.translationimporter.TranslationFormatSyntaxError: ... |
2052 | @@ -42,21 +42,21 @@ When a string is followed by non-string, non-space data, it is caught |
2053 | as an error. |
2054 | |
2055 | >>> parser.parse(b'msgid ""\nmsgstr "something"\n' |
2056 | - ... b'"foo" whatever\n') |
2057 | + ... b'"foo" whatever\n') # noqa |
2058 | Traceback (most recent call last): |
2059 | ... |
2060 | lp.translations.interfaces.translationimporter.TranslationFormatSyntaxError: ...Extra content found after string... |
2061 | |
2062 | Unrecognized escape sequences are caught as well. |
2063 | |
2064 | - >>> parser.parse(b'msgid "\!"\nmsgstr ""\n') |
2065 | + >>> parser.parse(b'msgid "\!"\nmsgstr ""\n') # noqa |
2066 | Traceback (most recent call last): |
2067 | ... |
2068 | lp.translations.interfaces.translationimporter.TranslationFormatSyntaxError: ...Unknown escape sequence... |
2069 | |
2070 | Unclosed strings (missing closing quotes) are caught. |
2071 | |
2072 | - >>> parser.parse(b'msgid ""\nmsgstr "\n') |
2073 | + >>> parser.parse(b'msgid ""\nmsgstr "\n') # noqa |
2074 | Traceback (most recent call last): |
2075 | ... |
2076 | lp.translations.interfaces.translationimporter.TranslationFormatSyntaxError: ...String not terminated... |
2077 | @@ -322,7 +322,7 @@ errors occur: |
2078 | ... msgstr "abcdef" |
2079 | ... """ # noqa |
2080 | |
2081 | - >>> parser.parse(content + chunk2) |
2082 | + >>> parser.parse(content + chunk2) # noqa |
2083 | Traceback (most recent call last): |
2084 | ... |
2085 | lp.translations.interfaces.translationimporter.TranslationFormatInvalidInputError: Line 13: Could not decode input from UTF-8 |
Looks good!