equal
deleted
inserted
replaced
18 |
18 |
19 from logilab.common.testlib import unittest_main, TestCase |
19 from logilab.common.testlib import unittest_main, TestCase |
20 |
20 |
21 from os.path import join |
21 from os.path import join |
22 |
22 |
23 from cubicweb import CW_SOFTWARE_ROOT as BASE |
23 from cubicweb import CW_SOFTWARE_ROOT as BASE, devtools |
24 from cubicweb.cwvreg import CWRegistryStore, UnknownProperty |
24 from cubicweb.cwvreg import CWRegistryStore, UnknownProperty |
25 from cubicweb.devtools import TestServerConfiguration |
|
26 from cubicweb.devtools.testlib import CubicWebTC |
25 from cubicweb.devtools.testlib import CubicWebTC |
27 from cubicweb.view import EntityAdapter |
26 from cubicweb.view import EntityAdapter |
28 |
27 |
29 |
28 |
30 class YesSchema: |
29 class YesSchema: |
35 |
34 |
36 |
35 |
37 class VRegistryTC(TestCase): |
36 class VRegistryTC(TestCase): |
38 |
37 |
39 def setUp(self): |
38 def setUp(self): |
40 config = TestServerConfiguration('data', __file__) |
39 config = devtools.TestServerConfiguration('data', __file__) |
41 self.vreg = CWRegistryStore(config) |
40 self.vreg = CWRegistryStore(config) |
42 config.bootstrap_cubes() |
41 config.bootstrap_cubes() |
43 self.vreg.schema = config.load_schema() |
42 self.vreg.schema = config.load_schema() |
44 |
43 |
45 def test_load_interface_based_vojects(self): |
44 def test_load_interface_based_vojects(self): |