equal
deleted
inserted
replaced
24 |
24 |
25 from copy import deepcopy |
25 from copy import deepcopy |
26 from pprint import pprint |
26 from pprint import pprint |
27 |
27 |
28 from logilab.common.decorators import clear_cache |
28 from logilab.common.decorators import clear_cache |
|
29 from logilab.common.testlib import SkipTest |
29 |
30 |
30 def tuplify(list): |
31 def tuplify(list): |
31 for i in range(len(list)): |
32 for i in range(len(list)): |
32 if type(list[i]) is not type(()): |
33 if type(list[i]) is not type(()): |
33 list[i] = tuple(list[i]) |
34 list[i] = tuple(list[i]) |
154 def setUpClass(cls): |
155 def setUpClass(cls): |
155 if cls.backend is not None: |
156 if cls.backend is not None: |
156 try: |
157 try: |
157 cls.dbhelper = get_db_helper(cls.backend) |
158 cls.dbhelper = get_db_helper(cls.backend) |
158 except ImportError, ex: |
159 except ImportError, ex: |
159 cls.skipTest(str(ex)) |
160 raise SkipTest(str(ex)) |
160 |
161 |
161 def setUp(self): |
162 def setUp(self): |
162 self.repo = FakeRepo(self.schema) |
163 self.repo = FakeRepo(self.schema) |
163 self.repo.system_source = mock_object(dbdriver=self.backend) |
164 self.repo.system_source = mock_object(dbdriver=self.backend) |
164 self.rqlhelper = RQLHelper(self.schema, special_relations={'eid': 'uid', |
165 self.rqlhelper = RQLHelper(self.schema, special_relations={'eid': 'uid', |