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

Change subject: [tests] Remove deprecated "gen" parameter of NoReferencesBot
......................................................................

[tests] Remove deprecated "gen" parameter of NoReferencesBot

Change-Id: I8140117cfc2278cfec751164a6d1d8f12bcaef84
---
M tests/noreferences_tests.py
1 file changed, 3 insertions(+), 3 deletions(-)

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



diff --git a/tests/noreferences_tests.py b/tests/noreferences_tests.py
index d2d39bc..390688c 100644
--- a/tests/noreferences_tests.py
+++ b/tests/noreferences_tests.py
@@ -1,6 +1,6 @@
 """Test noreferences bot module."""
 #
-# (C) Pywikibot team, 2018-2020
+# (C) Pywikibot team, 2018-2021
 #
 # Distributed under the terms of the MIT license.
 #
@@ -20,7 +20,7 @@
     def test_add(self):
         """Test adding references section."""
         page = pywikibot.Page(self.site, 'foo')
-        bot = NoReferencesBot(None)
+        bot = NoReferencesBot()
         bot.site = self.site
         page.text = '\n== Reference ==\n* [http://www.baz.org Baz]'
         new_text = bot.addReferences(page.text)
@@ -31,7 +31,7 @@
     def test_add_under_templates(self):
         """Test adding references section under templates in section."""
         page = pywikibot.Page(self.site, 'foo')
-        bot = NoReferencesBot(None)
+        bot = NoReferencesBot()
         bot.site = self.site
         page.text = '\n== Reference ==\n{{Překlad|en|Baz|123456}}'
         new_text = bot.addReferences(page.text)

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/659808
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: I8140117cfc2278cfec751164a6d1d8f12bcaef84
Gerrit-Change-Number: 659808
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