1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
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 |
24 from cubicweb.appobject import AppObject |
|
25 from cubicweb.cwvreg import CWRegistryStore, UnknownProperty |
24 from cubicweb.cwvreg import CWRegistryStore, UnknownProperty |
26 from cubicweb.devtools import TestServerConfiguration |
25 from cubicweb.devtools import TestServerConfiguration |
27 from cubicweb.devtools.testlib import CubicWebTC |
26 from cubicweb.devtools.testlib import CubicWebTC |
28 from cubicweb.view import EntityAdapter |
27 from cubicweb.view import EntityAdapter |
29 |
28 |
30 from cubes.card.entities import Card |
|
31 |
29 |
32 class YesSchema: |
30 class YesSchema: |
33 def __contains__(self, something): |
31 def __contains__(self, something): |
34 return True |
32 return True |
35 |
33 |
36 WEBVIEWSDIR = join(BASE, 'web', 'views') |
34 WEBVIEWSDIR = join(BASE, 'web', 'views') |
|
35 |
37 |
36 |
38 class VRegistryTC(TestCase): |
37 class VRegistryTC(TestCase): |
39 |
38 |
40 def setUp(self): |
39 def setUp(self): |
41 config = TestServerConfiguration('data', __file__) |
40 config = TestServerConfiguration('data', __file__) |