[test] Remove dependency on person cube in devtools package
authorDenis Laxalde <denis.laxalde@logilab.fr>
Tue, 12 Jan 2016 19:50:57 +0100
changeset 11068 a6c4d759be32
parent 11058 23eb30449fe5
child 11069 020de2d09c0f
[test] Remove dependency on person cube in devtools package
cubicweb/devtools/test/data/bootstrap_cubes
cubicweb/devtools/test/data/schema.py
cubicweb/devtools/test/requirements.txt
--- a/cubicweb/devtools/test/data/bootstrap_cubes	Wed Dec 16 18:08:37 2015 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-person
--- a/cubicweb/devtools/test/data/schema.py	Wed Dec 16 18:08:37 2015 +0100
+++ b/cubicweb/devtools/test/data/schema.py	Tue Jan 12 19:50:57 2016 +0100
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -15,18 +15,26 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""
+"""schema for cubicweb.devtools tests"""
+from yams.buildobjs import EntityType, SubjectRelation, String, RichString, Int, Date
+
 
-"""
-from yams.buildobjs import EntityType, SubjectRelation, String, Int, Date
+class Person(EntityType):
+    """a physical person"""
+    surname = String(required=True, fulltextindexed=True, indexed=True,
+                     maxsize=64)
+    firstname = String(fulltextindexed=True, maxsize=64)
+    civility = String(required=True, internationalizable=True,
+                      vocabulary=('Mr', 'Ms', 'Mrs'),
+                      default='Mr')
+    description = RichString(fulltextindexed=True)
+    birthday = Date()
 
-from cubes.person.schema import Person
-
-Person.add_relation(Date(), 'birthday')
 
 class Bug(EntityType):
     title = String(maxsize=64, required=True, fulltextindexed=True)
-    severity = String(vocabulary=('important', 'normal', 'minor'), default='normal')
+    severity = String(vocabulary=('important', 'normal', 'minor'),
+                      default='normal')
     cost = Int()
-    description	= String(maxsize=4096, fulltextindexed=True)
+    description = String(maxsize=4096, fulltextindexed=True)
     identical_to = SubjectRelation('Bug', symmetric=True)
--- a/cubicweb/devtools/test/requirements.txt	Wed Dec 16 18:08:37 2015 +0100
+++ b/cubicweb/devtools/test/requirements.txt	Tue Jan 12 19:50:57 2016 +0100
@@ -1,3 +1,2 @@
 Twisted
 webtest
-cubicweb-person