Mercurial > p > roundup > code
comparison test/test_sqlite.py @ 5388:d26921b851c3
Python 3 preparation: make relative imports explicit.
Tool-generated patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 22:22:08 +0000 |
| parents | 62de601bdf6f |
| children | fcbeff272828 |
comparison
equal
deleted
inserted
replaced
| 5387:f7432fc3db4d | 5388:d26921b851c3 |
|---|---|
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 | 17 |
| 18 import unittest, os, shutil, time | 18 import unittest, os, shutil, time |
| 19 from roundup.backends import get_backend, have_backend | 19 from roundup.backends import get_backend, have_backend |
| 20 | 20 |
| 21 from db_test_base import DBTest, ROTest, SchemaTest, ClassicInitTest, config | 21 from .db_test_base import DBTest, ROTest, SchemaTest, ClassicInitTest, config |
| 22 from db_test_base import ConcurrentDBTest, FilterCacheTest | 22 from .db_test_base import ConcurrentDBTest, FilterCacheTest |
| 23 from db_test_base import SpecialActionTest | 23 from .db_test_base import SpecialActionTest |
| 24 | 24 |
| 25 class sqliteOpener: | 25 class sqliteOpener: |
| 26 if have_backend('sqlite'): | 26 if have_backend('sqlite'): |
| 27 module = get_backend('sqlite') | 27 module = get_backend('sqlite') |
| 28 | 28 |
| 56 class sqliteSpecialActionTestCase(sqliteOpener, SpecialActionTest, | 56 class sqliteSpecialActionTestCase(sqliteOpener, SpecialActionTest, |
| 57 unittest.TestCase): | 57 unittest.TestCase): |
| 58 backend = 'sqlite' | 58 backend = 'sqlite' |
| 59 | 59 |
| 60 | 60 |
| 61 from session_common import SessionTest | 61 from .session_common import SessionTest |
| 62 class sqliteSessionTest(sqliteOpener, SessionTest, unittest.TestCase): | 62 class sqliteSessionTest(sqliteOpener, SessionTest, unittest.TestCase): |
| 63 pass | 63 pass |
