Advertisement
Guest User

Local instance: SITE_ONLY=1 TEST_OAUTH=1

a guest
Jul 29th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.03 KB | None | 0 0
  1. running nosetests
  2. running egg_info
  3. writing requirements to pywikibot.egg-info/requires.txt
  4. writing pywikibot.egg-info/PKG-INFO
  5. writing top-level names to pywikibot.egg-info/top_level.txt
  6. writing dependency_links to pywikibot.egg-info/dependency_links.txt
  7. reading manifest file 'pywikibot.egg-info/SOURCES.txt'
  8. writing manifest file 'pywikibot.egg-info/SOURCES.txt'
  9. Searching for ipaddr>=2.1.10
  10. Best match: ipaddr 2.1.11
  11. Processing ipaddr-2.1.11-py2.7.egg
  12.  
  13. Using /Users/VcamX/Documents/workspace/core/.eggs/ipaddr-2.1.11-py2.7.egg
  14. Searching for unicodecsv
  15. Best match: unicodecsv 0.13.0
  16. Processing unicodecsv-0.13.0-py2.7.egg
  17.  
  18. Using /Users/VcamX/Documents/workspace/core/.eggs/unicodecsv-0.13.0-py2.7.egg
  19. Test a static request. ... ERROR: Detected MediaWiki API exception fake; raising
  20. ok
  21. Test a Page instance as parameter using ASCII chars. ... ERROR: Detected MediaWiki API exception fake; raising
  22. ok
  23. Test a Page instance as parameter using non-ASCII chars. ... ERROR: Detected MediaWiki API exception fake; raising
  24. ok
  25. Test api.Request() constructor with implicit site creation. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:109: RuntimeWarning: Request() invoked without a site
  26. req = api.Request(action="test", foo="", bar="test")
  27.  
  28. WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:109: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  29. req = api.Request(action="test", foo="", bar="test")
  30.  
  31. ok
  32. test_internals (tests.api_tests.TestCachedRequest) ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2127: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  33. super(CachedRequest, self).__init__(*args, **kwargs)
  34.  
  35. ok
  36. test_normal_use (tests.api_tests.TestCachedRequest) ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2127: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  37. super(CachedRequest, self).__init__(*args, **kwargs)
  38.  
  39. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2127: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  40. super(CachedRequest, self).__init__(*args, **kwargs)
  41.  
  42. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2127: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  43. super(CachedRequest, self).__init__(*args, **kwargs)
  44.  
  45. ok
  46. Test api.Request() constructor. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/utils.py:283: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  47. _original_Request.__init__(self, *args, **kwargs)
  48.  
  49. ok
  50. Test if parameters is used with kwargs. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/utils.py:283: DeprecationWarning: Both kwargs and parameters are set in Request.__init__. It assumes that "parameters" is actually a parameter of the Request and is added to kwargs.
  51. _original_Request.__init__(self, *args, **kwargs)
  52.  
  53. WARNING: /Users/VcamX/Documents/workspace/core/tests/utils.py:283: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  54. _original_Request.__init__(self, *args, **kwargs)
  55.  
  56. ok
  57. Test keys, values and items from MutableMapping. ... ok
  58. Test attributes method. ... ok
  59. test_generators (tests.api_tests.TestParamInfo) ... ok
  60. test_init (tests.api_tests.TestParamInfo) ... ok
  61. test_init_pageset (tests.api_tests.TestParamInfo) ... ok
  62. Test module paths use the complete paths. ... ok
  63. Test v1.8 modules exist. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:333: DeprecationWarning: pywikibot.data.api.ParamInfo.modules is deprecated, use submodules() or module_paths instead.
  64. self.assertIn('revisions', pi.modules)
  65.  
  66. WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:334: DeprecationWarning: pywikibot.data.api.ParamInfo.modules is deprecated, use submodules() or module_paths instead.
  67. self.assertIn('help', pi.modules)
  68.  
  69. WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:335: DeprecationWarning: pywikibot.data.api.ParamInfo.modules is deprecated, use submodules() or module_paths instead.
  70. self.assertIn('allpages', pi.modules)
  71.  
  72. WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:336: DeprecationWarning: pywikibot.data.api.ParamInfo.modules is deprecated, use submodules() or module_paths instead.
  73. for mod in pi.modules:
  74.  
  75. ok
  76. test_multiple_modules (tests.api_tests.TestParamInfo) ... ok
  77. test_new_mode (tests.api_tests.TestParamInfo) ... WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:405: DeprecationWarning: pywikibot.data.api.ParamInfo.prefixes is deprecated, use prefix_map instead.
  78. self.assertIn('revisions', pi.prefixes)
  79.  
  80. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:961: DeprecationWarning: pywikibot.data.api.ParamInfo.module_attribute_map is deprecated, use attributes instead.
  81. self._prefixes = self.module_attribute_map('prefix')
  82.  
  83. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:1013: DeprecationWarning: pywikibot.data.api.ParamInfo.modules is deprecated, use submodules() or module_paths instead.
  84. modules = self.modules | self._prefix_submodules(
  85.  
  86. ok
  87. test_old_mode (tests.api_tests.TestParamInfo) ... WARNING: API warning (paraminfo): The querymodules parameter has been deprecated.
  88. WARNING: API warning (paraminfo): The mainmodule parameter has been deprecated.
  89. WARNING: API warning (paraminfo): The querymodules parameter has been deprecated.
  90. WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:387: DeprecationWarning: pywikibot.data.api.ParamInfo.prefixes is deprecated, use prefix_map instead.
  91. self.assertIn('revisions', pi.prefixes)
  92.  
  93. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:961: DeprecationWarning: pywikibot.data.api.ParamInfo.module_attribute_map is deprecated, use attributes instead.
  94. self._prefixes = self.module_attribute_map('prefix')
  95.  
  96. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:1013: DeprecationWarning: pywikibot.data.api.ParamInfo.modules is deprecated, use submodules() or module_paths instead.
  97. modules = self.modules | self._prefix_submodules(
  98.  
  99. WARNING: API warning (paraminfo): The querymodules parameter has been deprecated.
  100. ok
  101. Test module prefixes use the path. ... ok
  102. Test v1.8 module prefixes exist. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:352: DeprecationWarning: pywikibot.data.api.ParamInfo.prefixes is deprecated, use prefix_map instead.
  103. self.assertIn('revisions', pi.prefixes)
  104.  
  105. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:961: DeprecationWarning: pywikibot.data.api.ParamInfo.module_attribute_map is deprecated, use attributes instead.
  106. self._prefixes = self.module_attribute_map('prefix')
  107.  
  108. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:1013: DeprecationWarning: pywikibot.data.api.ParamInfo.modules is deprecated, use submodules() or module_paths instead.
  109. modules = self.modules | self._prefix_submodules(
  110.  
  111. WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:353: DeprecationWarning: pywikibot.data.api.ParamInfo.prefixes is deprecated, use prefix_map instead.
  112. self.assertIn('login', pi.prefixes)
  113.  
  114. WARNING: /Users/VcamX/Documents/workspace/core/tests/api_tests.py:354: DeprecationWarning: pywikibot.data.api.ParamInfo.prefixes is deprecated, use prefix_map instead.
  115. self.assertIn('allpages', pi.prefixes)
  116.  
  117. ok
  118. test_query_modules_with_limits (tests.api_tests.TestParamInfo) ... ok
  119. Test another module apart from query having submodules. ... WARNING: API warning (paraminfo): The module "query" does not have a submodule "foobar"
  120. ok
  121. test_with_invalid_module (tests.api_tests.TestParamInfo) ... WARNING: API warning (paraminfo): The module "main" does not have a submodule "foobar"
  122. WARNING: API warning (paraminfo): The module "main" does not have a submodule "foobar"
  123. WARNING: API warning (paraminfo): The module "main" does not have a submodule "foobar"
  124. ok
  125. test_with_module_info (tests.api_tests.TestParamInfo) ... ok
  126. test_with_module_revisions (tests.api_tests.TestParamInfo) ... ok
  127. Test CreatingPageBot class. ... WARNING: Page "Main Page" does already exist on local:en.
  128. ok
  129. Test ExistingPageBot class. ... WARNING: Page "Main PageX" does not exist on local:en.
  130. ok
  131. Test Request object when not a user. ... WARNING: /usr/local/var/pyenv/versions/2.7.9/lib/python2.7/unittest/case.py:993: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  132. callable_obj(*args, **kwargs)
  133.  
  134. WARNING: /usr/local/var/pyenv/versions/2.7.9/lib/python2.7/unittest/case.py:993: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  135. callable_obj(*args, **kwargs)
  136.  
  137. ok
  138. Test Request object when username is correct. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/dry_api_tests.py:219: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  139. Request(site=site, action='edit')
  140.  
  141. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:1447: DrySiteNote: DrySite(u'en', 'local') returning version 1.24; override if unsuitable.
  142. if ((self.write and MediaWikiVersion(self.site.version()) >= MediaWikiVersion("1.23")) or
  143.  
  144. ok
  145. Test Request object when username is not correct. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/dry_api_tests.py:211: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  146. Request(site=site, action='edit')
  147.  
  148. WARNING: API write action by unexpected username commenced.
  149. userinfo: {u'name': u'other_username', u'groups': []}
  150. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:1447: DrySiteNote: DrySite(u'en', 'local') returning version 1.24; override if unsuitable.
  151. if ((self.write and MediaWikiVersion(self.site.version()) >= MediaWikiVersion("1.23")) or
  152.  
  153. ok
  154. Test Request object prepared to upload. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/dry_api_tests.py:262: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  155. filename=os.path.join(_images_dir, 'MP_sounds.png'))
  156.  
  157. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:1447: DrySiteNote: DrySite(u'en', 'local') returning version 1.24; override if unsuitable.
  158. if ((self.write and MediaWikiVersion(self.site.version()) >= MediaWikiVersion("1.23")) or
  159.  
  160. ok
  161. test_attribute (tests.dry_api_tests.ParamInfoDictTests) ... ok
  162. test_new_format (tests.dry_api_tests.ParamInfoDictTests) ... ok
  163. test_old_format (tests.dry_api_tests.ParamInfoDictTests) ... ok
  164. test_parameter (tests.dry_api_tests.ParamInfoDictTests) ... ok
  165. Test QueryGenerator constructor. ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2489: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  166. kwargs = self.request_class.clean_kwargs(kwargs)
  167.  
  168. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2411: DrySiteNote: DrySite(u'en', 'local') returning version 1.24; override if unsuitable.
  169. if MediaWikiVersion(self.site.version()) < MediaWikiVersion('1.21'):
  170.  
  171. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2489: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  172. kwargs = self.request_class.clean_kwargs(kwargs)
  173.  
  174. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2411: DrySiteNote: DrySite(u'en', 'local') returning version 1.24; override if unsuitable.
  175. if MediaWikiVersion(self.site.version()) < MediaWikiVersion('1.21'):
  176.  
  177. ok
  178. test_logged_in (tests.dry_site_tests.TestDrySite) ... ok
  179. test_user_agent (tests.dry_site_tests.TestDrySite) ... ok
  180. Test i18n.input falls back with missing message package. ... ok
  181. test_ignore_invalid_isbn (tests.isbn_tests.TestCosmeticChangesISBN) ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/cosmetic_changes.py:203: ImportWarning: package stdnum.isbn not found; using scripts.isbn
  182. ok
  183. test_invalid_isbn (tests.isbn_tests.TestCosmeticChangesISBN) ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/cosmetic_changes.py:203: ImportWarning: package stdnum.isbn not found; using scripts.isbn
  184. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/cosmetic_changes.py:203: ImportWarning: package stdnum.isbn not found; using scripts.isbn
  185. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/cosmetic_changes.py:203: ImportWarning: package stdnum.isbn not found; using scripts.isbn
  186. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/cosmetic_changes.py:203: ImportWarning: package stdnum.isbn not found; using scripts.isbn
  187. ok
  188. Test ISBN. ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/cosmetic_changes.py:203: ImportWarning: package stdnum.isbn not found; using scripts.isbn
  189. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/cosmetic_changes.py:203: ImportWarning: package stdnum.isbn not found; using scripts.isbn
  190. ok
  191. Test combinations of parameters. ... ok
  192. Test that invalid titles raise InvalidTitle exception. ... ok
  193. Test that relative links are handled properly. ... ok
  194. Test that valid titles are correctly normalized. ... ok
  195. Test identity. ... ok
  196. Test login. ... Logged in to local:en via consumer f912b1e8556d297ac9d390b9c747fc04
  197. ok
  198. Test getCreator. ... ok
  199. Test Page.contributors(). ... ok
  200. Test Page.edit_count(). ... ok
  201. Test Page.revisions(). ... ok
  202. Test various methods that rely on API. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/page_tests.py:400: DeprecationWarning: pywikibot.page.BasePage.latestRevision is deprecated, use latest_revision_id instead.
  203. self.assertIsInstance(mainpage.latestRevision(), int)
  204.  
  205. ok
  206. Test BasePage constructor. ... ok
  207. Test isCategory method. ... ok
  208. Test the integration with Extension:Disambiguator. ... SKIP: Disambiguator extension not loaded on test site
  209. testIsImage (tests.page_tests.TestPageObject) ... ok
  210. Test isTalkPage() method. ... ok
  211. testLinks (tests.page_tests.TestPageObject) ... ok
  212. Test namespace() method. ... ok
  213. Test Page constructor. ... ok
  214. testPickleAbility (tests.page_tests.TestPageObject) ... ok
  215. testReferences (tests.page_tests.TestPageObject) ... ok
  216. Test section() method. ... ok
  217. Test site() method. ... ok
  218. Test title() method options in article namespace. ... ok
  219. Test various methods that rely on API: bad page. ... ok
  220. Test that the redirect option is set correctly. ... SKIP: No redirect pages on site Site("en", "local")
  221. Test various methods that rely on API: talk page. ... SKIP: No talk page for local:en's main page
  222. Test that repr returns ASCII compatible bytes in Python 2. ... WARNING: /usr/local/var/pyenv/versions/2.7.9/lib/python2.7/unittest/case.py:340: RuntimeWarning: TestResult has no addExpectedFailure method, reporting as passes
  223. ok
  224. Test the return type of repr(Page(<main page>)) is str. ... ok
  225. Test u'{x!r}'.format(Page(u'<non-ascii>')) raises exception on Python 2. ... ok
  226. Test the return type of repr(Page(u'<non-ascii>')) is str. ... ok
  227. Test repr(Page(u'<non-ascii>')) is represented simply as utf8. ... ok
  228. Test to capture actual Python 3 result pre unicode_literals. ... SKIP: Python 3+ specific test
  229. test_purge (tests.page_tests.TestPageUserAction) ... Sleeping for 19.2 seconds, 2015-07-29 21:25:03
  230. ok
  231. Test Page.watch, with and without unwatch enabled. ... Sleeping for 17.7 seconds, 2015-07-29 21:25:25
  232. WARNING: API warning (watch): The title parameter has been deprecated.
  233. Sleeping for 19.2 seconds, 2015-07-29 21:25:43
  234. WARNING: API warning (watch): The title parameter has been deprecated.
  235. ok
  236. Test running login -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "login"
  237. Test running add_text -simulate. ... ok
  238. Test running archivebot -simulate. ... ok
  239. Test running basic -simulate. ... ok
  240. Test running blockpageschecker -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "blockpageschecker"
  241. Test running blockreview -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "blockreview"
  242. Test running capitalize_redirects -simulate. ... ok
  243. Test running casechecker -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "casechecker"
  244. Test running catall -simulate. ... WARNING: /usr/local/var/pyenv/versions/2.7.9/lib/python2.7/unittest/case.py:340: RuntimeWarning: TestResult has no addExpectedFailure method, reporting as passes
  245. ok
  246. Test running category -simulate. ... ok
  247. Test running category_redirect -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "category_redirect"
  248. Test running cfd -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "cfd"
  249. Test running checkimages -simulate. ... ERROR: SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "checkimages"
  250. Traceback (most recent call last):
  251. File "/Users/VcamX/Documents/workspace/core/tests/utils.py", line 74, in wrapper
  252. func(*args, **kwargs)
  253. File "/Users/VcamX/Documents/workspace/core/tests/script_tests.py", line 224, in test_skip_script
  254. 'PYWIKIBOT2_TEST_AUTORUN=1 to enable) "{0}"'.format(script_name))
  255. SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "checkimages"SKIP: Test is allowed to fail.
  256. Test running claimit -simulate. ... ok
  257. Test running clean_sandbox -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "clean_sandbox"
  258. Test running commons_link -simulate. ... ok
  259. Test running commonscat -simulate. ... ok
  260. Test running coordinate_import -simulate. ... ok
  261. Test running cosmetic_changes -simulate. ... ok
  262. Test running create_categories -simulate. ... ok
  263. Test running data_ingestion -simulate. ... ok
  264. Test running delete -simulate. ... ok
  265. Test running disambredir -simulate. ... ERROR: SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "disambredir"
  266. Traceback (most recent call last):
  267. File "/Users/VcamX/Documents/workspace/core/tests/utils.py", line 74, in wrapper
  268. func(*args, **kwargs)
  269. File "/Users/VcamX/Documents/workspace/core/tests/script_tests.py", line 224, in test_skip_script
  270. 'PYWIKIBOT2_TEST_AUTORUN=1 to enable) "{0}"'.format(script_name))
  271. SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "disambredir"SKIP: Test is allowed to fail.
  272. Test running djvutext -simulate. ... ok
  273. Test running editarticle -simulate. ... ok
  274. Test running featured -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "featured"
  275. Test running fixing_redirects -simulate. ... ok
  276. Test running flickrripper -simulate. ... WARNING: /usr/local/var/pyenv/versions/2.7.9/lib/python2.7/unittest/case.py:340: RuntimeWarning: TestResult has no addExpectedFailure method, reporting as passes
  277. ok
  278. Test running freebasemappingupload -simulate. ... ok
  279. Test running harvest_template -simulate. ... ok
  280. Test running illustrate_wikidata -simulate. ... ok
  281. Test running image -simulate. ... ok
  282. Test running imagerecat -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "imagerecat"
  283. Test running imagetransfer -simulate. ... ok
  284. Test running imageuncat -simulate. ... ok
  285. Test running interwiki -simulate. ... ok
  286. Test running isbn -simulate. ... ok
  287. Test running listpages -simulate. ... ok
  288. Test running lonelypages -simulate. ... ERROR: SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "lonelypages"
  289. Traceback (most recent call last):
  290. File "/Users/VcamX/Documents/workspace/core/tests/utils.py", line 74, in wrapper
  291. func(*args, **kwargs)
  292. File "/Users/VcamX/Documents/workspace/core/tests/script_tests.py", line 224, in test_skip_script
  293. 'PYWIKIBOT2_TEST_AUTORUN=1 to enable) "{0}"'.format(script_name))
  294. SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "lonelypages"SKIP: Test is allowed to fail.
  295. Test running makecat -simulate. ... ok
  296. Test running match_images -simulate. ... ok
  297. Test running misspelling -simulate. ... ERROR: SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "misspelling"
  298. Traceback (most recent call last):
  299. File "/Users/VcamX/Documents/workspace/core/tests/utils.py", line 74, in wrapper
  300. func(*args, **kwargs)
  301. File "/Users/VcamX/Documents/workspace/core/tests/script_tests.py", line 224, in test_skip_script
  302. 'PYWIKIBOT2_TEST_AUTORUN=1 to enable) "{0}"'.format(script_name))
  303. SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "misspelling"SKIP: Test is allowed to fail.
  304. Test running movepages -simulate. ... ok
  305. Test running newitem -simulate. ... ok
  306. Test running noreferences -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "noreferences"
  307. Test running nowcommons -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "nowcommons"
  308. Test running pagefromfile -simulate. ... ok
  309. Test running patrol -simulate. ... WARNING: /usr/local/var/pyenv/versions/2.7.9/lib/python2.7/unittest/case.py:340: RuntimeWarning: TestResult has no addExpectedFailure method, reporting as passes
  310. ok
  311. Test running piper -simulate. ... ok
  312. Test running protect -simulate. ... ok
  313. Test running redirect -simulate. ... ok
  314. Test running reflinks -simulate. ... ok
  315. Test running replace -simulate. ... ok
  316. Test running replicate_wiki -simulate. ... ok
  317. Test running revertbot -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "revertbot"
  318. Test running selflink -simulate. ... ok
  319. Test running shell -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "shell"
  320. Test running solve_disambiguation -simulate. ... ok
  321. Test running spamremove -simulate. ... ok
  322. Test running states_redirect -simulate. ... WARNING: /usr/local/var/pyenv/versions/2.7.9/lib/python2.7/unittest/case.py:340: RuntimeWarning: TestResult has no addExpectedFailure method, reporting as passes
  323. ok
  324. Test running template -simulate. ... ok
  325. Test running templatecount -simulate. ... ok
  326. Test running touch -simulate. ... ok
  327. Test running transferbot -simulate. ... ok
  328. Test running unlink -simulate. ... ok
  329. Test running unusedfiles -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "unusedfiles"
  330. Test running upload -simulate. ... WARNING: /usr/local/var/pyenv/versions/2.7.9/lib/python2.7/unittest/case.py:340: RuntimeWarning: TestResult has no addExpectedFailure method, reporting as passes
  331. ok
  332. Test running watchlist -simulate. ... ERROR: SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "watchlist"
  333. Traceback (most recent call last):
  334. File "/Users/VcamX/Documents/workspace/core/tests/utils.py", line 74, in wrapper
  335. func(*args, **kwargs)
  336. File "/Users/VcamX/Documents/workspace/core/tests/script_tests.py", line 224, in test_skip_script
  337. 'PYWIKIBOT2_TEST_AUTORUN=1 to enable) "{0}"'.format(script_name))
  338. SkipTest: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "watchlist"SKIP: Test is allowed to fail.
  339. Test running weblinkchecker -simulate. ... ok
  340. Test running welcome -simulate. ... SKIP: Skipping execution of auto-run scripts (set PYWIKIBOT2_TEST_AUTORUN=1 to enable) "welcome"
  341. Test the site.search() method. ... WARNING: search: namespaces cannot be empty; using [0].
  342. WARNING: search: namespaces cannot be empty; using [0].
  343. ok
  344. Test site.randompages() with limit. ... ok
  345. Test site.randompages() with namespaces. ... ok
  346. Test site.randompages() with redirects. ... ok
  347. Test site.randompages() continuation. ... ok
  348. SKIP: SiteSysopTestCase: No sysop username for local:en
  349. -------------------- >> begin captured logging << --------------------
  350. requests_oauthlib.oauth1_auth: DEBUG: Signing request <PreparedRequest [GET]> using client <Client nonce=None, signature_method=HMAC-SHA1, realm=None, encoding=utf-8, timestamp=None, resource_owner_secret=****, decoding=utf-8, verifier=None, signature_type=AUTH_HEADER, rsa_key=None, resource_owner_key=3994505207cb5eef63722dc1bdf741a1, client_secret=****, callback_uri=None, client_key=f912b1e8556d297ac9d390b9c747fc04>
  351. requests_oauthlib.oauth1_auth: DEBUG: Including body in call to sign: False
  352. oauthlib.oauth1.rfc5849: DEBUG: Collected params: [(u'oauth_nonce', u'157187796251468410681438176436'), (u'oauth_timestamp', u'1438176436'), (u'oauth_consumer_key', u'f912b1e8556d297ac9d390b9c747fc04'), (u'oauth_signature_method', u'HMAC-SHA1'), (u'oauth_version', u'1.0'), (u'oauth_token', u'3994505207cb5eef63722dc1bdf741a1')]
  353. oauthlib.oauth1.rfc5849: DEBUG: Normalized params: oauth_consumer_key=f912b1e8556d297ac9d390b9c747fc04&oauth_nonce=157187796251468410681438176436&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1438176436&oauth_token=3994505207cb5eef63722dc1bdf741a1&oauth_version=1.0
  354. oauthlib.oauth1.rfc5849: DEBUG: Normalized URI: http://192.168.2.168:8080/
  355. oauthlib.oauth1.rfc5849: DEBUG: Base signing string: GET&http%3A%2F%2F192.168.2.168%3A8080%2F&oauth_consumer_key%3Df912b1e8556d297ac9d390b9c747fc04%26oauth_nonce%3D157187796251468410681438176436%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1438176436%26oauth_token%3D3994505207cb5eef63722dc1bdf741a1%26oauth_version%3D1.0
  356. oauthlib.oauth1.rfc5849: DEBUG: Signature: deCcxaxs0hxDKdy7+BduMWQz1zQ=
  357. oauthlib.oauth1.rfc5849: DEBUG: Encoding URI, headers and body to utf-8.
  358. requests_oauthlib.oauth1_auth: DEBUG: Updated url: http://192.168.2.168:8080/
  359. requests_oauthlib.oauth1_auth: DEBUG: Updated headers: {'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'user-agent': 'setup Pywikibot/2.0b3 (g6065) requests/2.7.0 Python/2.7.9.final.0', 'Connection': 'keep-alive', 'Cookie': 'bitnami_mediawiki_session=ec6ac8354153fc340aa27b81604570c0', 'Authorization': 'OAuth oauth_nonce="157187796251468410681438176436", oauth_timestamp="1438176436", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="f912b1e8556d297ac9d390b9c747fc04", oauth_token="3994505207cb5eef63722dc1bdf741a1", oauth_signature="deCcxaxs0hxDKdy7%2BBduMWQz1zQ%3D"'}
  360. requests_oauthlib.oauth1_auth: DEBUG: Updated body: None
  361. requests.packages.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 924
  362. --------------------- >> end captured logging << ---------------------
  363. Test the site.logevents() method. ... ok
  364. test_methods (tests.site_tests.SiteUserTestCase) ... ok
  365. Test the site.patrol() method. ... Sleeping for 17.3 seconds, 2015-07-29 21:27:24
  366. SKIP: permissiondenied: Permission denied
  367. Test the site.users() method. ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2489: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  368. kwargs = self.request_class.clean_kwargs(kwargs)
  369.  
  370. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2489: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  371. kwargs = self.request_class.clean_kwargs(kwargs)
  372.  
  373. ok
  374. Test the site.watchlist_revs() method. ... ok
  375. SKIP: TestDataSiteClientPreloading: Site("en", "local") does not have data repository
  376. Test the site.imageusage() method. ... SKIP: No images on site Site("en", "local")
  377. Test the site.imageusage() method with namespaces. ... SKIP: No images on site Site("en", "local")
  378. Test the site.imageusage() method on redirects only. ... SKIP: No images on site Site("en", "local")
  379. Test the site.imageusage() method with redirects. ... SKIP: No images on site Site("en", "local")
  380. Test basic preloading with pageids. ... ok
  381. Test preloading continuation works. ... ok
  382. Test preloading continuation with groupsize greater than total. ... SKIP: insufficient links on main page
  383. Test sending invalid titles. No warnings issued, but it should. ... SKIP: insufficient links on main page
  384. test_preload_langlinks_count (tests.site_tests.TestPagePreloading) ... ok
  385. test_preload_langlinks_normal (tests.site_tests.TestPagePreloading) ... ok
  386. Test preloading continuation with groupsize greater than total. ... SKIP: insufficient links on main page
  387. test_preload_templates (tests.site_tests.TestPagePreloading) ... ok
  388. test_preload_templates_and_langlinks (tests.site_tests.TestPagePreloading) ... ok
  389. Test sending pageids with unnormalized titles, causing warnings. ... SKIP: insufficient links on main page
  390. Test sending unnormalized titles, causing warnings. ... SKIP: insufficient links on main page
  391. Test basic preloading with titles. ... ok
  392. Test the site.recentchanges() method. ... ok
  393. Test the site.recentchanges() with changetype. ... ok
  394. Test the site.recentchanges() with boolean flags. ... ok
  395. Test the site.recentchanges() method with File: and File talk:. ... ok
  396. Test the site.recentchanges() with pagelist deprecated MW 1.14. ... ok
  397. Test the site.recentchanges() method with start/end. ... ok
  398. Test that namespaces is callable and returns itself. ... ok
  399. testExtensions (tests.site_tests.TestSiteExtensions) ... ok
  400. Test the site.allcategories() method. ... ok
  401. Test the site.allimages() method. ... ok
  402. Test the site.alllinks() method. ... ok
  403. Test the site.blocks() method. ... ok
  404. Test the site.exturlusage() method. ... ok
  405. Test site methods for getting links to and from a page. ... ok
  406. Test the site.allpages() method. ... ok
  407. test_allpages_langlinks_disabled (tests.site_tests.TestSiteGenerators) ... ok
  408. test_allpages_langlinks_enabled (tests.site_tests.TestSiteGenerators) ... ok
  409. test_allpages_pagesize (tests.site_tests.TestSiteGenerators) ... ok
  410. test_allpages_protection (tests.site_tests.TestSiteGenerators) ... ok
  411. Test the site.allusers() method. ... ok
  412. Test the site.allusers(prefix=..) method. ... ok
  413. Test the site.allusers(start=..) method. ... ok
  414. Test site._generator with namespaces. ... ok
  415. Test the site.lock_page() and site.unlock_page() method. ... ok
  416. Test the site.newfiles() method. ... ok
  417. Test that protectedpages returns protected page titles. ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/site.py:5733: DeprecationWarning: pywikibot.site.Namespace.resolve is deprecated, use NamespacesDict.resolve instead.
  418. namespaces = Namespace.resolve(namespace, self.namespaces)
  419.  
  420. ok
  421. Test that protectedpages returns protected pages. ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/site.py:5733: DeprecationWarning: pywikibot.site.Namespace.resolve is deprecated, use NamespacesDict.resolve instead.
  422. namespaces = Namespace.resolve(namespace, self.namespaces)
  423.  
  424. ok
  425. test_protectedpages_edit_level (tests.site_tests.TestSiteGenerators) ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/site.py:5733: DeprecationWarning: pywikibot.site.Namespace.resolve is deprecated, use NamespacesDict.resolve instead.
  426. namespaces = Namespace.resolve(namespace, self.namespaces)
  427.  
  428. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/site.py:5733: DeprecationWarning: pywikibot.site.Namespace.resolve is deprecated, use NamespacesDict.resolve instead.
  429. namespaces = Namespace.resolve(namespace, self.namespaces)
  430.  
  431. SKIP: The site "local:en" has no protected pages in main namespace.
  432. Test the siteinfo property. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/site_tests.py:1788: DeprecationWarning: pywikibot.site.APISite.case is deprecated, use use siteinfo or Namespace instance instead.
  433. self.assertEqual(mysite.case(), mysite.siteinfo['case'])
  434.  
  435. ok
  436. Test site.loadrevisions() with Page.text. ... ok
  437. SKIP: TestSiteLoadRevisionsSysop: No sysop username for local:en
  438. -------------------- >> begin captured logging << --------------------
  439. requests_oauthlib.oauth1_auth: DEBUG: Signing request <PreparedRequest [GET]> using client <Client nonce=None, signature_method=HMAC-SHA1, realm=None, encoding=utf-8, timestamp=None, resource_owner_secret=****, decoding=utf-8, verifier=None, signature_type=AUTH_HEADER, rsa_key=None, resource_owner_key=3994505207cb5eef63722dc1bdf741a1, client_secret=****, callback_uri=None, client_key=f912b1e8556d297ac9d390b9c747fc04>
  440. requests_oauthlib.oauth1_auth: DEBUG: Including body in call to sign: False
  441. oauthlib.oauth1.rfc5849: DEBUG: Collected params: [(u'oauth_nonce', u'171454600905033227091438176484'), (u'oauth_timestamp', u'1438176484'), (u'oauth_consumer_key', u'f912b1e8556d297ac9d390b9c747fc04'), (u'oauth_signature_method', u'HMAC-SHA1'), (u'oauth_version', u'1.0'), (u'oauth_token', u'3994505207cb5eef63722dc1bdf741a1')]
  442. oauthlib.oauth1.rfc5849: DEBUG: Normalized params: oauth_consumer_key=f912b1e8556d297ac9d390b9c747fc04&oauth_nonce=171454600905033227091438176484&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1438176484&oauth_token=3994505207cb5eef63722dc1bdf741a1&oauth_version=1.0
  443. oauthlib.oauth1.rfc5849: DEBUG: Normalized URI: http://192.168.2.168:8080/
  444. oauthlib.oauth1.rfc5849: DEBUG: Base signing string: GET&http%3A%2F%2F192.168.2.168%3A8080%2F&oauth_consumer_key%3Df912b1e8556d297ac9d390b9c747fc04%26oauth_nonce%3D171454600905033227091438176484%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1438176484%26oauth_token%3D3994505207cb5eef63722dc1bdf741a1%26oauth_version%3D1.0
  445. oauthlib.oauth1.rfc5849: DEBUG: Signature: EF/iId+ZeJiTG3t3VDOcFC+RNd0=
  446. oauthlib.oauth1.rfc5849: DEBUG: Encoding URI, headers and body to utf-8.
  447. requests_oauthlib.oauth1_auth: DEBUG: Updated url: http://192.168.2.168:8080/
  448. requests_oauthlib.oauth1_auth: DEBUG: Updated headers: {'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'user-agent': 'setup Pywikibot/2.0b3 (g6065) requests/2.7.0 Python/2.7.9.final.0', 'Connection': 'keep-alive', 'Cookie': 'bitnami_mediawiki_session=ec6ac8354153fc340aa27b81604570c0', 'Authorization': 'OAuth oauth_nonce="171454600905033227091438176484", oauth_timestamp="1438176484", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_consumer_key="f912b1e8556d297ac9d390b9c747fc04", oauth_token="3994505207cb5eef63722dc1bdf741a1", oauth_signature="EF%2FiId%2BZeJiTG3t3VDOcFC%2BRNd0%3D"'}
  449. requests_oauthlib.oauth1_auth: DEBUG: Updated body: None
  450. requests.packages.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 924
  451. --------------------- >> end captured logging << ---------------------
  452. Test generic ApiSite methods. ... ok
  453. Test cases for BaseSite methods. ... WARNING: /Users/VcamX/Documents/workspace/core/tests/site_tests.py:221: DeprecationWarning: pywikibot.site.BaseSite.nocapitalize is deprecated, use APISite.siteinfo['case'] or Namespace.case == 'case-sensitive' instead.
  454. self.assertEqual(foo, u"[[foo]]" if mysite.nocapitalize else u"[[Foo]]")
  455.  
  456. ok
  457. Test cases for site constructors. ... ok
  458. Test Site methods using English specific inputs and outputs. ... ok
  459. Test cases for languages() and related methods. ... ok
  460. Test cases for methods manipulating namespace names. ... ok
  461. Test ApiSite methods for getting page-specific info. ... Retrieving 1 pages from local:en.
  462. ok
  463. testPickleAbility (tests.site_tests.TestSiteObject) ... ok
  464. Test that if filterredir's bool is False it's deprecated to False. ... ok
  465. Test that filterredir set to 'only' is deprecated to True. ... ok
  466. Test live_version. ... ok
  467. Test if the language method returns the same as the lang property. ... ok
  468. Test live_version. ... ok
  469. Test ns_index. ... ok
  470. Test calling the Siteinfo with dump=True. ... ok
  471. Test calling the Siteinfo without setting dump. ... ok
  472. Test Site._cache_proofreadinfo(). ... ok
  473. Test Site._cache_proofreadinfo(). ... ok
  474. testInvalidToken (tests.site_tests.TestSiteTokens) ... ok
  475. test_deprecated_token (tests.site_tests.TestSiteTokens) ... WARNING: /Users/VcamX/Documents/workspace/core/tests/site_tests.py:1707: DeprecationWarning: pywikibot.site.APISite.getToken is deprecated, use the 'tokens' property instead.
  476. self.assertEqual(self.mysite.getToken(), self.mysite.tokens['edit'])
  477.  
  478. WARNING: /Users/VcamX/Documents/workspace/core/tests/site_tests.py:1709: DeprecationWarning: pywikibot.site.APISite.getPatrolToken is deprecated, use the 'tokens' property instead.
  479. self.assertEqual(self.mysite.getPatrolToken(), self.mysite.tokens['patrol'])
  480.  
  481. ok
  482. Test ability to get patrol token on MW 1.16 wiki. ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2489: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  483. kwargs = self.request_class.clean_kwargs(kwargs)
  484.  
  485. WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2489: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  486. kwargs = self.request_class.clean_kwargs(kwargs)
  487.  
  488. ok
  489. Test ability to get patrol token on MW 1.19 wiki. ... ok
  490. Test ability to get patrol token. ... ok
  491. Test ability to get page tokens. ... WARNING: /Users/VcamX/Documents/workspace/core/pywikibot/data/api.py:2489: DeprecationWarning: Instead of using kwargs from Request.__init__, parameters for the request to the API should be added via the "parameters" parameter.
  492. kwargs = self.request_class.clean_kwargs(kwargs)
  493.  
  494. ok
  495. Test ability to get page tokens. ... ok
  496. Test ability to get page tokens. ... ok
  497. Test ability to get page tokens. ... ok
  498. test_async_request (tests.site_tests.TestSiteinfoAsync) ... ok
  499. Test the site.usercontribs() method. ... ok
  500. Test the site.usercontribs() method with invalid parameters. ... ok
  501. Test the site.usercontribs() method using namespaces. ... ok
  502. Test the site.usercontribs() method using showMinor. ... ok
  503. Test the site.usercontribs() method with userprefix. ... ok
  504. Test the site.usercontribs() method. ... ok
  505. Test the site.usercontribs() method with range reversed. ... ok
  506. Test the site.recentchanges() with patrolled boolean flags. ... ok
  507. test_adjoining_links (tests.textlib_tests.TestCategoryRearrangement) ... ok
  508. Test in-place category change is reversible. ... ok
  509. Test in-place category change does not alter the sortkey. ... ok
  510. test_standard_links (tests.textlib_tests.TestCategoryRearrangement) ... ok
  511. test_category_format_Category (tests.textlib_tests.TestFormatCategory) ... ok
  512. test_category_format_Page (tests.textlib_tests.TestFormatCategory) ... ok
  513. test_category_format_bare (tests.textlib_tests.TestFormatCategory) ... ok
  514. test_category_format_raw (tests.textlib_tests.TestFormatCategory) ... ok
  515. test_case_sensitive (tests.textlib_tests.TestReplaceExcept) ... ok
  516. test_no_replace (tests.textlib_tests.TestReplaceExcept) ... ok
  517. test_overlapping_replace (tests.textlib_tests.TestReplaceExcept) ... ok
  518. test_regex_replace (tests.textlib_tests.TestReplaceExcept) ... ok
  519. test_replace_exception (tests.textlib_tests.TestReplaceExcept) ... ok
  520. Test replacing in text which contains back references. ... ok
  521. test_replace_tags (tests.textlib_tests.TestReplaceExcept) ... ok
  522. test_replace_tags_interwiki (tests.textlib_tests.TestReplaceExcept) ... SKIP: family local:en doesnt have languages
  523. test_replace_template (tests.textlib_tests.TestReplaceExcept) ... ok
  524. test_replace_with_marker (tests.textlib_tests.TestReplaceExcept) ... ok
  525. test_simple_replace (tests.textlib_tests.TestReplaceExcept) ... ok
  526. SKIP: Tkinter tests are disabled on Travis-CI
  527.  
  528. ----------------------------------------------------------------------
  529. Ran 258 tests in 254.781s
  530.  
  531. OK (SKIP=40)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement