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}
Exemple #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
        }
Exemple #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'
 def setUp(self):
     PluginTest.setUp(self, pycategories)
     self.request.get_data()["extensions"] = {"txt": parse_text}
Exemple #7
0
 def setUp(self):
     PluginTest.setUp(self, entrytitle)
Exemple #8
0
 def setUp(self):
     PluginTest.setUp(self, yeararchives)
 def setUp(self):
     PluginTest.setUp(self, check_nonhuman)
Exemple #10
0
 def setUp(self):
     PluginTest.setUp(self, readmore)
Exemple #11
0
 def setUp(self):
     PluginTest.setUp(self, acronyms)
Exemple #12
0
 def setUp(self):
     PluginTest.setUp(self, tags)
     self.tmpdir = tempfile.mkdtemp() 
 def setUp(self):
     PluginTest.setUp(self, pyfilenamemtime)
 def setUp(self):
     PluginTest.setUp(self, readmore)
Exemple #15
0
 def setUp(self):
     PluginTest.setUp(self, pages)
 def setUp(self):
     PluginTest.setUp(self, check_javascript)
     self.config['blog_title'] = 'test title'
Exemple #17
0
 def setUp(self):
     PluginTest.setUp(self, tags)
     self.tmpdir = tempfile.mkdtemp()
 def setUp(self):
     PluginTest.setUp(self, pycategories)
     self.request.get_data()["extensions"] = {"txt": parse_text}
 def setUp(self):
     PluginTest.setUp(self, entrytitle)
Exemple #20
0
 def setUp(self):
     PluginTest.setUp(self, check_blacklist)
Exemple #21
0
 def setUp(self):
     PluginTest.setUp(self, pages)
 def setUp(self):
     PluginTest.setUp(self, yeararchives)
Exemple #23
0
 def setUp(self):
     PluginTest.setUp(self, check_nonhuman)
Exemple #24
0
 def setUp(self):
     PluginTest.setUp(self, pyfilenamemtime)