[server/test] Drop dependency on folder cube
Just copy schema bits when needed and drop a view (not possible anymore) in
unittest_repository.
Closes #5168939.
--- a/server/test/data/bootstrap_cubes Wed Mar 25 08:21:00 2015 +0100
+++ b/server/test/data/bootstrap_cubes Wed Mar 25 08:43:00 2015 +0100
@@ -1,1 +1,1 @@
-card,comment,folder,tag,basket,email,file,localperms
+card,comment,tag,basket,email,file,localperms
--- a/server/test/data/migratedapp/bootstrap_cubes Wed Mar 25 08:21:00 2015 +0100
+++ b/server/test/data/migratedapp/bootstrap_cubes Wed Mar 25 08:43:00 2015 +0100
@@ -1,1 +1,1 @@
-card,comment,folder,tag,basket,email,file
+card,comment,tag,basket,email,file
--- a/server/test/data/migratedapp/schema.py Wed Mar 25 08:21:00 2015 +0100
+++ b/server/test/data/migratedapp/schema.py Wed Mar 25 08:43:00 2015 +0100
@@ -165,6 +165,15 @@
# `login_user` rdef is gone
# `ambiguous_inlined` rdef is gone
+class Folder(EntityType):
+ """folders are used to classify entities. They may be defined as a tree.
+ """
+ name = String(required=True, indexed=True, internationalizable=True,
+ maxsize=64)
+ description = RichString(fulltextindexed=True)
+ filed_under = SubjectRelation('Folder', description=_('parent folder'))
+
+
# New
class Text(Para):
__specializes_schema__ = True
--- a/server/test/data/schema.py Wed Mar 25 08:21:00 2015 +0100
+++ b/server/test/data/schema.py Wed Mar 25 08:43:00 2015 +0100
@@ -240,6 +240,14 @@
subject = 'Tag'
object = ('CWUser', 'CWGroup', 'State', 'Note', 'Card', 'Affaire')
+class Folder(EntityType):
+ """folders are used to classify entities. They may be defined as a tree.
+ """
+ name = String(required=True, indexed=True, internationalizable=True,
+ maxsize=64)
+ description = RichString(fulltextindexed=True)
+ filed_under = SubjectRelation('Folder', description=_('parent folder'))
+
class filed_under(RelationDefinition):
subject = ('Note', 'Affaire')
object = 'Folder'
--- a/server/test/unittest_repository.py Wed Mar 25 08:21:00 2015 +0100
+++ b/server/test/unittest_repository.py Wed Mar 25 08:43:00 2015 +0100
@@ -654,7 +654,6 @@
u'system.version.cubicweb',
u'system.version.email',
u'system.version.file',
- u'system.version.folder',
u'system.version.localperms',
u'system.version.tag'])