lists.wikimedia.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
List overview
Download
Pywikibot-commits
August 2017
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
pywikibot-commits@lists.wikimedia.org
2 participants
120 discussions
Start a n
N
ew thread
[Gerrit] pywikibot/core[master]: [TEST] Add tests for Page.page_image()
by jenkins-bot (Code Review)
07 Aug '17
07 Aug '17
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/370426
) Change subject: [TEST] Add tests for Page.page_image() ...................................................................... [TEST] Add tests for Page.page_image() Bug: T172625 Change-Id: I8418259c4e504e3fe1d50dbca867af72f3c59852 --- M tests/page_tests.py 1 file changed, 13 insertions(+), 0 deletions(-) Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved diff --git a/tests/page_tests.py b/tests/page_tests.py index 56e4662..d6698ce 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -550,6 +550,19 @@ page_d3 = pywikibot.Page(site, 'User:Sn1per/ProtectTest1/test/test') self.assertEqual(page_d3.depth, 3) + def test_page_image(self): + """ + Test C{Page.page_image} function. + + Since we are not sure what the wiki will return, we mainly test types + """ + site = self.get_site() + mainpage = self.get_mainpage() + image = pywikibot.FilePage(site, 'File:Jean-Léon Gérôme 003.jpg') + self.assertIsInstance(mainpage.page_image(), pywikibot.FilePage) + # for file pages, the API should return the file itself + self.assertEqual(image.page_image(), image) + class TestPageDeprecation(DefaultSiteTestCase, DeprecationTestCase): -- To view, visit
https://gerrit.wikimedia.org/r/370426
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I8418259c4e504e3fe1d50dbca867af72f3c59852 Gerrit-PatchSet: 2 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Strainu <wiki(a)strainu.ro> Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
Passed: wikimedia/pywikibot-core#4226 (master - 4ec712e)
by Travis CI
07 Aug '17
07 Aug '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4226 Status: Passed Duration: 2 hours, 8 minutes, and 8 seconds Commit: 4ec712e (master) Author: jenkins-bot Message: Merge "[DOC] core release is 3.0" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/65dfbc7456dd...4ec712e0…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/261580367?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
Passed: wikimedia/pywikibot-core#4225 (master - 65dfbc7)
by Travis CI
07 Aug '17
07 Aug '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4225 Status: Passed Duration: 2 hours, 8 minutes, and 56 seconds Commit: 65dfbc7 (master) Author: jenkins-bot Message: Merge "Update pypi description" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/bc073c17be49...65dfbc74…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/261561136?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
[Gerrit] pywikibot/core[master]: Don't create Wikidata items for category redirects
by jenkins-bot (Code Review)
07 Aug '17
07 Aug '17
jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/370368
) Change subject: Don't create Wikidata items for category redirects ...................................................................... Don't create Wikidata items for category redirects They are not allowed in Wikidata:
https://www.wikidata.org/wiki/Wikidata:Notability/Exclusion_criteria
*T172621 Change-Id: Ie7c8f4204b1af1beb3260bd59f542743a9052552 --- M scripts/newitem.py 1 file changed, 3 insertions(+), 0 deletions(-) Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved diff --git a/scripts/newitem.py b/scripts/newitem.py index f650b40..ad1e0bf 100755 --- a/scripts/newitem.py +++ b/scripts/newitem.py @@ -109,6 +109,9 @@ u'Page creation of %s on %s is too recent. Skipping.' % (page, page.editTime().isoformat())) return + if page.isCategoryRedirect(): + pywikibot.output('%s is a category redirect. Skipping.' % page) + return if page.langlinks(): # FIXME: Implement this -- To view, visit
https://gerrit.wikimedia.org/r/370368
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Ie7c8f4204b1af1beb3260bd59f542743a9052552 Gerrit-PatchSet: 6 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: XXN <dan10real(a)gmail.com> Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com> Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com> Gerrit-Reviewer: XXN <dan10real(a)gmail.com> Gerrit-Reviewer: Xqt <info(a)gno.de> Gerrit-Reviewer: jenkins-bot <>
1
0
0
0
Passed: wikimedia/pywikibot-core#4224 (master - bc073c1)
by Travis CI
07 Aug '17
07 Aug '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4224 Status: Passed Duration: 2 hours, 23 minutes, and 11 seconds Commit: bc073c1 (master) Author: jenkins-bot Message: Merge "[bugfix] Filter bool, None and int types in the right way" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/267eefe86e24...bc073c17…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/261560178?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
Passed: wikimedia/pywikibot-core#4223 (master - 267eefe)
by Travis CI
07 Aug '17
07 Aug '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4223 Status: Passed Duration: 2 hours, 4 minutes, and 55 seconds Commit: 267eefe (master) Author: jenkins-bot Message: Merge "[IMPR] Enhance argument management in harvest_template.py" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/0b60f45cc3e8...267eefe8…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/261559646?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
Canceled: wikimedia/pywikibot-core#4220 (master - 3ba67a5)
by Travis CI
07 Aug '17
07 Aug '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4220 Status: Canceled Duration: 7 hours, 50 minutes, and 58 seconds Commit: 3ba67a5 (master) Author: jenkins-bot Message: Merge "[doc] Add bug tracker at
https://doc.wikimedia.org/pywikibot/
" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/a159819e8165...3ba67a58…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/261517379?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
Passed: wikimedia/pywikibot-core#4222 (master - 0b60f45)
by Travis CI
06 Aug '17
06 Aug '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4222 Status: Passed Duration: 2 hours, 51 minutes, and 50 seconds Commit: 0b60f45 (master) Author: jenkins-bot Message: Merge "[DOC] Include license from parent folder" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/763f615e3ec7...0b60f45c…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/261551705?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
Errored: wikimedia/pywikibot-core#4220 (master - 3ba67a5)
by Travis CI
06 Aug '17
06 Aug '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4220 Status: Errored Duration: 7 hours, 50 minutes, and 58 seconds Commit: 3ba67a5 (master) Author: jenkins-bot Message: Merge "[doc] Add bug tracker at
https://doc.wikimedia.org/pywikibot/
" View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/a159819e8165...3ba67a58…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/261517379?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
Passed: wikimedia/pywikibot-core#4221 (master - 763f615)
by Travis CI
06 Aug '17
06 Aug '17
Build Update for wikimedia/pywikibot-core ------------------------------------- Build: #4221 Status: Passed Duration: 4 hours, 15 minutes, and 5 seconds Commit: 763f615 (master) Author: xqt Message: [fix] fix spelling mistake Change-Id: I626768ba147890cec65e7d4fa0ea3bcefae0baaa View the changeset:
https://github.com/wikimedia/pywikibot-core/compare/3ba67a58316e...763f615e…
View the full build log and details:
https://travis-ci.org/wikimedia/pywikibot-core/builds/261541077?utm_source=…
-- You can configure recipients for build notifications in your .travis.yml file. See
https://docs.travis-ci.com/user/notifications
1
0
0
0
← Newer
1
...
6
7
8
9
10
11
12
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
Results per page:
10
25
50
100
200