equal
deleted
inserted
replaced
27 from cubicweb.web.formfields import * |
27 from cubicweb.web.formfields import * |
28 from cubicweb.web.views.forms import EntityFieldsForm |
28 from cubicweb.web.views.forms import EntityFieldsForm |
29 |
29 |
30 from cubes.file.entities import File |
30 from cubes.file.entities import File |
31 |
31 |
32 config = TestServerConfiguration('data') |
32 def setup_module(*args): |
33 config.bootstrap_cubes() |
33 global schema |
34 schema = config.load_schema() |
34 config = TestServerConfiguration('data', apphome=GuessFieldTC.datadir) |
|
35 config.bootstrap_cubes() |
|
36 schema = config.load_schema() |
35 |
37 |
36 class GuessFieldTC(TestCase): |
38 class GuessFieldTC(TestCase): |
37 |
39 |
38 def test_state_fields(self): |
40 def test_state_fields(self): |
39 title_field = guess_field(schema['State'], schema['name']) |
41 title_field = guess_field(schema['State'], schema['name']) |