jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/750699 )
Change subject: [tests] Fix missing arguments with family_tests.py ......................................................................
[tests] Fix missing arguments with family_tests.py
Bug: T298375 Change-Id: Ieef98fb5b3c925233e674ed2ddc70547de77040d --- M tests/family_tests.py 1 file changed, 3 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/family_tests.py b/tests/family_tests.py index 94ed871..6f5cb63 100644 --- a/tests/family_tests.py +++ b/tests/family_tests.py @@ -152,9 +152,10 @@ net = False
@PatchingTestCase.patched(pywikibot, 'Site') - def Site(self, code, fam, *args, **kwargs): + def Site(self, *args, **kwargs): """Own DrySite creator.""" - self.assertEqual(args, ()) + code, fam, *args = args + self.assertEqual(args, []) self.assertEqual(kwargs, {}) self.assertEqual(code, self.current_code) self.assertEqual(fam, self.current_family)
pywikibot-commits@lists.wikimedia.org