Ejemplo n.º 1
0
    def setUp(self):
        """Set up test."""
        patch_request()

        super(ForceCacheMixin, self).setUp()
Ejemplo n.º 2
0
 def setUpClass(cls):
     patch_request()
     global mysite, mainpage, imagepage
     mysite = pywikibot.Site(cls.code, cls.family)
     mainpage = pywikibot.Page(pywikibot.Link("Main Page", mysite))
     imagepage = iter(mainpage.imagelinks()).next() # 1st image on main page
Ejemplo n.º 3
0
    def setUp(self):
        """Set up test."""
        patch_request()

        super(ForceCacheMixin, self).setUp()
Ejemplo n.º 4
0
 def setUpClass(cls):
     patch_request()
     global mysite, mainpage, imagepage
     mysite = pywikibot.Site(cls.code, cls.family)
     mainpage = pywikibot.Page(pywikibot.Link("Main Page", mysite))
     imagepage = iter(mainpage.imagelinks()).next() # 1st image on main page
Ejemplo n.º 5
0
    def setUp(self):
        patch_request()

        self.test_start = time.time()
Ejemplo n.º 6
0
 def setUp(self):
     patch_request()