def setUp(self):
        PluginTest.setUp(self, akismetcomments)

        akismet.Akismet = MockAkismet

        self.config['base_url'] = MockAkismet.BLOG_URL
        self.config['akismet_api_key'] = MockAkismet.GOOD_KEY
        self.args['comment'] = {'description': "foo",
                                'ipaddress': MockAkismet.IPADDRESS}
Esempio n. 2
0
    def setUp(self):
        PluginTest.setUp(self, comments)

        # add comment templates
        self.renderer.flavour.update({"comment-story": "comment-story", "comment": "comment"})

        # inject the frozen time module
        comments.time = self.frozen_time

        # populate with default config vars
        comments.cb_start(self.args)
    def setUp(self):
        PluginTest.setUp(self, akismetcomments)

        akismet.Akismet = MockAkismet

        self.config['base_url'] = MockAkismet.BLOG_URL
        self.config['akismet_api_key'] = MockAkismet.GOOD_KEY
        self.args['comment'] = {
            'description': "foo",
            'ipaddress': MockAkismet.IPADDRESS
        }
Esempio n. 4
0
    def setUp(self):
        PluginTest.setUp(self, comments)

        # add comment templates
        self.renderer.flavour.update({'comment-story': 'comment-story',
                                      'comment': 'comment'})

        # inject the frozen time module
        comments.time = self.frozen_time

        # populate with default config vars
        comments.cb_start(self.args)
 def setUp(self):
     PluginTest.setUp(self, check_javascript)
     self.config['blog_title'] = 'test title'
Esempio n. 6
0
 def setUp(self):
     PluginTest.setUp(self, pycategories)
     self.request.get_data()["extensions"] = {"txt": parse_text}
Esempio n. 7
0
 def setUp(self):
     PluginTest.setUp(self, entrytitle)
Esempio n. 8
0
 def setUp(self):
     PluginTest.setUp(self, yeararchives)
 def setUp(self):
     PluginTest.setUp(self, check_nonhuman)
Esempio n. 10
0
 def setUp(self):
     PluginTest.setUp(self, readmore)
Esempio n. 11
0
 def setUp(self):
     PluginTest.setUp(self, acronyms)
Esempio n. 12
0
 def setUp(self):
     PluginTest.setUp(self, tags)
     self.tmpdir = tempfile.mkdtemp() 
 def setUp(self):
     PluginTest.setUp(self, pyfilenamemtime)
Esempio n. 14
0
 def setUp(self):
     PluginTest.setUp(self, readmore)
Esempio n. 15
0
 def setUp(self):
     PluginTest.setUp(self, pages)
Esempio n. 16
0
 def setUp(self):
     PluginTest.setUp(self, check_javascript)
     self.config['blog_title'] = 'test title'
Esempio n. 17
0
 def setUp(self):
     PluginTest.setUp(self, tags)
     self.tmpdir = tempfile.mkdtemp()
Esempio n. 18
0
 def setUp(self):
     PluginTest.setUp(self, pycategories)
     self.request.get_data()["extensions"] = {"txt": parse_text}
Esempio n. 19
0
 def setUp(self):
     PluginTest.setUp(self, entrytitle)
Esempio n. 20
0
 def setUp(self):
     PluginTest.setUp(self, check_blacklist)
Esempio n. 21
0
 def setUp(self):
     PluginTest.setUp(self, pages)
Esempio n. 22
0
 def setUp(self):
     PluginTest.setUp(self, yeararchives)
Esempio n. 23
0
 def setUp(self):
     PluginTest.setUp(self, check_nonhuman)
Esempio n. 24
0
 def setUp(self):
     PluginTest.setUp(self, pyfilenamemtime)