equal
deleted
inserted
replaced
9 |
9 |
10 from os.path import join |
10 from os.path import join |
11 |
11 |
12 from cubicweb import CW_SOFTWARE_ROOT as BASE |
12 from cubicweb import CW_SOFTWARE_ROOT as BASE |
13 from cubicweb.vregistry import VObject |
13 from cubicweb.vregistry import VObject |
14 from cubicweb.cwvreg import CubicWebRegistry, UnknownProperty |
14 from cubicweb.cwvreg import CubicWebVRegistry, UnknownProperty |
15 from cubicweb.devtools import TestServerConfiguration |
15 from cubicweb.devtools import TestServerConfiguration |
16 from cubicweb.interfaces import IMileStone |
16 from cubicweb.interfaces import IMileStone |
17 |
17 |
18 from cubes.card.entities import Card |
18 from cubes.card.entities import Card |
19 |
19 |
25 |
25 |
26 class VRegistryTC(TestCase): |
26 class VRegistryTC(TestCase): |
27 |
27 |
28 def setUp(self): |
28 def setUp(self): |
29 config = TestServerConfiguration('data') |
29 config = TestServerConfiguration('data') |
30 self.vreg = CubicWebRegistry(config) |
30 self.vreg = CubicWebVRegistry(config) |
31 config.bootstrap_cubes() |
31 config.bootstrap_cubes() |
32 self.vreg.schema = config.load_schema() |
32 self.vreg.schema = config.load_schema() |
33 |
33 |
34 def test_load_interface_based_vojects(self): |
34 def test_load_interface_based_vojects(self): |
35 self.vreg.init_registration([WEBVIEWSDIR]) |
35 self.vreg.init_registration([WEBVIEWSDIR]) |