Mercurial > p > roundup > code
comparison test/test_postgresql.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 | 5cb6e6b594b0 |
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 ClassicInitBase, setupTracker, SpecialActionTest | 26 from .db_test_base import ClassicInitBase, setupTracker, SpecialActionTest |
| 27 from .rest_common import TestCase as RestTestCase | |
| 27 | 28 |
| 28 if not have_backend('postgresql'): | 29 if not have_backend('postgresql'): |
| 29 # FIX: workaround for a bug in pytest.mark.skip(): | 30 # FIX: workaround for a bug in pytest.mark.skip(): |
| 30 # https://github.com/pytest-dev/pytest/issues/568 | 31 # https://github.com/pytest-dev/pytest/issues/568 |
| 31 from .pytest_patcher import mark_class | 32 from .pytest_patcher import mark_class |
| 223 | 224 |
| 224 def tearDown(self): | 225 def tearDown(self): |
| 225 SpecialActionTest.tearDown(self) | 226 SpecialActionTest.tearDown(self) |
| 226 postgresqlOpener.tearDown(self) | 227 postgresqlOpener.tearDown(self) |
| 227 | 228 |
| 229 @skip_postgresql | |
| 230 class postgresqlRestTest (RestTestCase, unittest.TestCase): | |
| 231 backend = 'postgresql' | |
| 232 | |
| 228 # vim: set et sts=4 sw=4 : | 233 # vim: set et sts=4 sw=4 : |
