Page MenuHomePhabricator

noreferences_tests fails
Closed, ResolvedPublic

Description

=================================== FAILURES ===================================
________________________ TestAddingReferences.test_add _________________________

self = <tests.noreferences_tests.TestAddingReferences testMethod=test_add>

    def test_add(self):
        """Test adding references section."""
        page = pywikibot.Page(self.site, 'foo')
>       bot = NoReferencesBot()
E       TypeError: __init__() takes exactly 2 arguments (1 given)

tests/noreferences_tests.py:26: TypeError
________________ TestAddingReferences.test_add_under_templates _________________

self = <tests.noreferences_tests.TestAddingReferences testMethod=test_add_under_templates>

    def test_add_under_templates(self):
        """Test adding references section under templates in section."""
        page = pywikibot.Page(self.site, 'foo')
>       bot = NoReferencesBot()
E       TypeError: __init__() takes exactly 2 arguments (1 given)

tests/noreferences_tests.py:36: TypeError