cubicweb/devtools/testlib.py
changeset 11086 c9641ee0b652
parent 11076 403a901b6b1e
child 11129 97095348b3ee
--- 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)