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)
pywikibot-commits@lists.wikimedia.org