def testIssue14(self): ''' https://github.com/WolfgangFahl/py-3rdparty-mediawiki/issues/14 Pushing pages in File: namespace should be working ''' return # don't test this nightly # don't test this in Travis if self.inPublicCI(): return wikipush=WikiPush("master","test") wikipush.push(["File:index.png"], force=True, ignore=True, withImages=True)
def testWikiPush(self): ''' test pushing a page from one wiki to another ''' # don't test this in Travis if self.inPublicCI(): return wp=WikiPush("wikipedia_org_test2","test") for force in [False,True]: for ignore in [False,True]: wp.push(["PictureTestPage"],force=force,ignore=ignore) pass