コード例 #1
0
 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)
コード例 #2
0
 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