# HG changeset patch # User Sylvain Thénault # Date 1485767911 -3600 # Node ID 7402b18b48a76c78c368081816b82d4e14798f2d # Parent fc19dda111dc7591c6d6f58aed402cafb6ccc51f [devtools] Skip computed relations when attempting to auto-populate test database Fix the automatic database population underlying automatic test to avoid attempt to create computed relations. diff -r fc19dda111dc -r 7402b18b48a7 cubicweb/devtools/fill.py --- a/cubicweb/devtools/fill.py Mon Jan 30 18:14:45 2017 +0100 +++ b/cubicweb/devtools/fill.py Mon Jan 30 10:18:31 2017 +0100 @@ -414,8 +414,8 @@ queries = [] # 1/ skip final relations and explictly ignored relations rels = sorted([rschema for rschema in self.schema.relations() - if not (rschema.final or rschema in ignored_relations)], - key=lambda x:not composite_relation(x)) + if not (rschema.final or rschema.rule or rschema in ignored_relations)], + key=lambda x: not composite_relation(x)) # for each relation # 2/ take each possible couple (subj, obj) # 3/ analyze cardinality of relation