# HG changeset patch # User Denis Laxalde # Date 1452624657 -3600 # Node ID a6c4d759be323e39e32b1d3f57c07ac9b469f329 # Parent 23eb30449fe52ae1bc0addbfd1002591050dea63 [test] Remove dependency on person cube in devtools package diff -r 23eb30449fe5 -r a6c4d759be32 cubicweb/devtools/test/data/bootstrap_cubes --- 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 diff -r 23eb30449fe5 -r a6c4d759be32 cubicweb/devtools/test/data/schema.py --- 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 . -""" +"""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) diff -r 23eb30449fe5 -r a6c4d759be32 cubicweb/devtools/test/requirements.txt --- 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