@@ -109,6 +109,7 @@ def get_ql_property(cls: schema.Class, prop: schema.Property, prev_child: str =
109109 prev_child = prev_child if prop .is_child else None ,
110110 is_optional = prop .is_optional ,
111111 is_predicate = prop .is_predicate ,
112+ is_unordered = prop .is_unordered ,
112113 description = prop .description
113114 )
114115 if prop .is_single :
@@ -123,7 +124,7 @@ def get_ql_property(cls: schema.Class, prop: schema.Property, prev_child: str =
123124 singular = inflection .singularize (inflection .camelize (prop .name )),
124125 plural = inflection .pluralize (inflection .camelize (prop .name )),
125126 tablename = inflection .tableize (f"{ cls .name } _{ prop .name } " ),
126- tableparams = ["this" , "index" , "result" ],
127+ tableparams = ["this" , "index" , "result" ] if not prop . is_unordered else [ "this" , "result" ] ,
127128 doc = _get_doc (cls , prop , plural = False ),
128129 doc_plural = _get_doc (cls , prop , plural = True ),
129130 )
@@ -255,7 +256,7 @@ def _get_all_properties_to_be_tested(cls: schema.Class, lookup: typing.Dict[str,
255256 # TODO here operations are duplicated, but should be better if we split ql and qltest generation
256257 p = get_ql_property (c , p )
257258 yield ql .PropertyForTest (p .getter , is_total = p .is_single or p .is_predicate ,
258- type = p .type if not p .is_predicate else None , is_repeated = p .is_repeated )
259+ type = p .type if not p .is_predicate else None , is_indexed = p .is_indexed )
259260 if p .is_repeated and not p .is_optional :
260261 yield ql .PropertyForTest (f"getNumberOf{ p .plural } " , type = "int" )
261262 elif p .is_optional and not p .is_repeated :
0 commit comments