view test/test_jinja2.py @ 5005:a86b0c02940d

Remove the tsearch2 backend The documentation within the tsearch2 backend labels it as being experimental and that it should not be used. The have_backend() function in roundup.backend returns False indicating that it does not exist and is labeled as "currently not working". The PostgreSQL website also seems to indicate that it has been deprecated since v8.3 when text searching was integrated into the core[1]. Considering all this, it seems like the best option is to just remove the tsearch2 backend. [1] http://www.postgresql.org/docs/9.4/static/tsearch2.html
author John Kristensen <john@jerrykan.com>
date Sun, 11 Oct 2015 00:06:51 +1100
parents 2c3cc4ccd024
children 3766e0ca8e7a
line wrap: on
line source

#-*- encoding: utf8 -*-
""" Testing the jinja2 templating engine of roundup-tracker.

Copyright 2015 Bernhard E. Reiter <bernhard@intevation.de>
This module is Free Software under the Roundup licensing of 1.5,
see the COPYING.txt file coming with Roundup.

Just a test file template for now.
"""
import unittest

import db_test_base

TESTSUITE_IDENTIFIER='jinja2'

class TestCase_Zero(unittest.TestCase):
    def test_zero(self):
        self.assertEqual(True, True)

class TestCase(unittest.TestCase):

    backend = None  # can be used to create tests per backend, see test_xmlrpc

    def setUp(self):
        self.dirname = '_test_' + TESTSUITE_IDENTIFIER
        self.instance = db_test_base.setupTracker(self.dirname, self.backend)
        self.db = self.instance.open('admin')

    def test_zero(self):
        pass

def test_suite():
    suite = unittest.TestSuite()

    suite.addTest(unittest.makeSuite(TestCase_Zero))

    # only using one database backend for now, not sure if doing all
    # backends will keep the test focussed enough to be useful for the used
    # computing time. Would be okay to change in the future.
    l = 'anydbm'
    dct = dict(backend = l)
    subcls = type(TestCase)('TestCase_%s'%l, (TestCase,), dct)
    suite.addTest(unittest.makeSuite(subcls))

    return suite

# Other roundup testcases do have a def main thing in there,
# but I'm not sure if this is still helpful. So left out for now.

# vim: ts=4 et sts=4 sw=4 ai :



Roundup Issue Tracker: http://roundup-tracker.org/