def _run(self, *args): """Run the L{replace.main} with the given args and summary and page.""" # -page to not have an empty generator # -site as it will use Site() otherwise with suppress_warnings(WARN_SITE_OBJ, category=UserWarning): return replace.main(*(args + ('-site:wikipedia:test', '-page:TEST')))
def _run(self, *args): """Run the :py:obj:`replace.main` with the given args. It also adds -site and -page parameter. """ # -page to not have an empty generator # -site as it will use Site() otherwise with suppress_warnings(WARN_SITE_OBJ, category=UserWarning): return replace.main(*(args + ('-site:wikipedia:test', '-page:TEST')))
def _run(self, *args): """Run the L{replace.main} with the given args and summary and page.""" # -page to not have an empty generator # -lang and -family as it will use Site() otherwise return replace.main(*(args + ('-lang:test', '-family:test', '-page:TEST')))