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}
Ejemplo n.º 2
0
    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
        }
Ejemplo n.º 3
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)
Ejemplo 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_blacklist)
Ejemplo n.º 6
0
 def setUp(self):
     PluginTest.setUp(self, check_javascript)
     self.config['blog_title'] = 'test title'
Ejemplo n.º 7
0
 def tearDown(self):
     PluginTest.tearDown(self)
Ejemplo n.º 8
0
 def tearDown(self):
     PluginTest.tearDown(self)
     try:
         shutil.rmtree(self.tmpdir)
     except OSError:
         pass
Ejemplo n.º 9
0
 def setUp(self):
     PluginTest.setUp(self, check_nonhuman)
Ejemplo n.º 10
0
 def setUp(self):
     PluginTest.setUp(self, entrytitle)
Ejemplo n.º 11
0
 def tearDown(self):
     PluginTest.tearDown(self)
     try:
         shutil.rmtree(self.tmpdir)
     except OSError:
         pass
Ejemplo n.º 12
0
 def setUp(self):
     PluginTest.setUp(self, tags)
     self.tmpdir = tempfile.mkdtemp()
 def setUp(self):
     PluginTest.setUp(self, check_nonhuman)
 def setUp(self):
     PluginTest.setUp(self, pycategories)
     self.request.get_data()["extensions"] = {"txt": parse_text}
 def tearDown(self):
     PluginTest.tearDown(self)
 def setUp(self):
     PluginTest.setUp(self, yeararchives)
Ejemplo n.º 17
0
 def setUp(self):
     PluginTest.setUp(self, acronyms)
Ejemplo n.º 18
0
 def setUp(self):
     PluginTest.setUp(self, tags)
     self.tmpdir = tempfile.mkdtemp() 
Ejemplo n.º 19
0
 def setUp(self):
     PluginTest.setUp(self, check_blacklist)
Ejemplo n.º 20
0
 def setUp(self):
     PluginTest.setUp(self, acronyms)
 def setUp(self):
     PluginTest.setUp(self, pycategories)
     self.request.get_data()["extensions"] = {"txt": parse_text}