Mercurial > p > roundup > code
comparison test/test_mysql.py @ 5601:fcbeff272828 REST-rebased
Integrate REST tests into db framework
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Wed, 30 Jan 2019 13:58:14 +0100 |
| parents | d26921b851c3 |
| children | c840e8a571d3 |
comparison
equal
deleted
inserted
replaced
| 5600:e2c74d8121f3 | 5601:fcbeff272828 |
|---|---|
| 22 from roundup.backends import get_backend, have_backend | 22 from roundup.backends import get_backend, have_backend |
| 23 | 23 |
| 24 from .db_test_base import DBTest, ROTest, config, SchemaTest, ClassicInitTest | 24 from .db_test_base import DBTest, ROTest, config, SchemaTest, ClassicInitTest |
| 25 from .db_test_base import ConcurrentDBTest, HTMLItemTest, FilterCacheTest | 25 from .db_test_base import ConcurrentDBTest, HTMLItemTest, FilterCacheTest |
| 26 from .db_test_base import SpecialActionTest | 26 from .db_test_base import SpecialActionTest |
| 27 from .rest_common import TestCase as RestTestCase | |
| 27 | 28 |
| 28 | 29 |
| 29 class mysqlOpener: | 30 class mysqlOpener: |
| 30 if have_backend('mysql'): | 31 if have_backend('mysql'): |
| 31 module = get_backend('mysql') | 32 module = get_backend('mysql') |
| 143 | 144 |
| 144 def tearDown(self): | 145 def tearDown(self): |
| 145 SpecialActionTest.tearDown(self) | 146 SpecialActionTest.tearDown(self) |
| 146 mysqlOpener.tearDown(self) | 147 mysqlOpener.tearDown(self) |
| 147 | 148 |
| 149 @skip_mysql | |
| 150 class mysqlRestTest (RestTestCase, unittest.TestCase): | |
| 151 backend = 'mysql' | |
| 152 | |
| 148 # vim: set et sts=4 sw=4 : | 153 # vim: set et sts=4 sw=4 : |
