equal
deleted
inserted
replaced
20 """ |
20 """ |
21 |
21 |
22 from cubicweb.devtools import init_test_database |
22 from cubicweb.devtools import init_test_database |
23 from cubicweb.devtools.repotest import BaseQuerierTC |
23 from cubicweb.devtools.repotest import BaseQuerierTC |
24 |
24 |
25 repo, cnx = init_test_database() |
25 |
|
26 def setup_module(*args): |
|
27 global repo, cnx |
|
28 repo, cnx = init_test_database(apphome=SQLGenAnnotatorTC.datadir) |
26 |
29 |
27 def teardown_module(*args): |
30 def teardown_module(*args): |
28 global repo, cnx |
31 global repo, cnx |
29 del repo, cnx |
32 del repo, cnx |
30 |
33 |
31 |
34 |
32 class SQLGenAnnotatorTC(BaseQuerierTC): |
35 class SQLGenAnnotatorTC(BaseQuerierTC): |
33 repo = repo |
36 |
|
37 def setUp(self): |
|
38 self.__class__.repo = repo |
|
39 super(SQLGenAnnotatorTC, self).setUp() |
34 |
40 |
35 def get_max_eid(self): |
41 def get_max_eid(self): |
36 # no need for cleanup here |
42 # no need for cleanup here |
37 return None |
43 return None |
38 def cleanup(self): |
44 def cleanup(self): |