equal
deleted
inserted
replaced
22 |
22 |
23 from logilab.database import get_db_helper |
23 from logilab.database import get_db_helper |
24 |
24 |
25 from cubicweb.req import RequestSessionBase |
25 from cubicweb.req import RequestSessionBase |
26 from cubicweb.cwvreg import CWRegistryStore |
26 from cubicweb.cwvreg import CWRegistryStore |
27 from cubicweb.web.request import CubicWebRequestBase |
27 from cubicweb.web.request import ConnectionCubicWebRequestBase |
28 |
28 |
29 from cubicweb.devtools import BASE_URL, BaseApptestConfiguration |
29 from cubicweb.devtools import BASE_URL, BaseApptestConfiguration |
30 |
30 |
31 |
31 |
32 class FakeConfig(dict, BaseApptestConfiguration): |
32 class FakeConfig(dict, BaseApptestConfiguration): |
51 |
51 |
52 def sources(self): |
52 def sources(self): |
53 return {'system': {'db-driver': 'sqlite'}} |
53 return {'system': {'db-driver': 'sqlite'}} |
54 |
54 |
55 |
55 |
56 class FakeRequest(CubicWebRequestBase): |
56 class FakeRequest(ConnectionCubicWebRequestBase): |
57 """test implementation of an cubicweb request object""" |
57 """test implementation of an cubicweb request object""" |
58 |
58 |
59 def __init__(self, *args, **kwargs): |
59 def __init__(self, *args, **kwargs): |
60 if not (args or 'vreg' in kwargs): |
60 if not (args or 'vreg' in kwargs): |
61 kwargs['vreg'] = CWRegistryStore(FakeConfig(), initlog=False) |
61 kwargs['vreg'] = CWRegistryStore(FakeConfig(), initlog=False) |