jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/632462 )

Change subject: [tests] Enable tests for parser_function_count.py
......................................................................

[tests] Enable tests for parser_function_count.py

Change-Id: I976ce2927a0ec3456c8fdfcb64f0f48749c757d1
---
M scripts/parser_function_count.py
M tests/script_tests.py
2 files changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/parser_function_count.py b/scripts/parser_function_count.py
index 7293e5d..db2856f 100644
--- a/scripts/parser_function_count.py
+++ b/scripts/parser_function_count.py
@@ -116,7 +116,7 @@
     @property
     def generator(self):
         """Generator."""
-        gen = self.site.allpages(start=self.option.start,
+        gen = self.site.allpages(start=self.opt.start,
                                  namespace=10, filterredir=False)
         if self.site.doc_subpage:
             gen = pagegenerators.RegexFilterPageGenerator(
diff --git a/tests/script_tests.py b/tests/script_tests.py
index d2ba2a3..b15062e 100644
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -101,6 +101,7 @@
     'revertbot',
     'noreferences',
     'nowcommons',
+    'parser_function_count',
     'patrol',
     'shell',
     'standardize_interwiki',
@@ -127,6 +128,7 @@
     'imageharvest': 'From what URL should I get the images',
     'login': 'Logged in on ',
     'pagefromfile': 'Please enter the file name',
+    'parser_function_count': 'Hold on, this will need some time.',
     'replace': 'Press Enter to use this automatic message',
     'replicate_wiki':
         'error: the following arguments are required: destination',

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/632462
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I976ce2927a0ec3456c8fdfcb64f0f48749c757d1
Gerrit-Change-Number: 632462
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to