[devtools] don't auto-populate virtual relations
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 21 Jan 2016 16:08:17 +0100
changeset 11086 c9641ee0b652
parent 11085 2c0541b6803f
child 11087 35b29f1eb37a
[devtools] don't auto-populate virtual relations
cubicweb/devtools/testlib.py
--- a/cubicweb/devtools/testlib.py	Fri Jan 29 16:48:58 2016 +0100
+++ b/cubicweb/devtools/testlib.py	Thu Jan 21 16:08:17 2016 +0100
@@ -1184,7 +1184,7 @@
         existingrels = {}
         ignored_relations = SYSTEM_RELATIONS | self.ignored_relations
         for rschema in self.schema.relations():
-            if rschema.final or rschema in ignored_relations:
+            if rschema.final or rschema in ignored_relations or rschema.rule:
                 continue
             rset = cnx.execute('DISTINCT Any X,Y WHERE X %s Y' % rschema)
             existingrels.setdefault(rschema.type, set()).update((x, y) for x, y in rset)