@@ -18,7 +18,6 @@ def run_mock():
1818import_file = lambda : stub_path ().with_suffix (".qll" )
1919stub_import_prefix = "stub.path."
2020gen_import_prefix = "other.path."
21- index_param = ql .Param ("index" , "int" )
2221
2322
2423def generate (opts , renderer , written = None ):
@@ -121,7 +120,7 @@ def test_repeated_property(opts, input, renderer):
121120 import_file (): ql .ImportList ([stub_import_prefix + "MyObject" ]),
122121 stub_path () / "MyObject.qll" : ql .Stub (name = "MyObject" , base_import = gen_import_prefix + "MyObject" ),
123122 ql_output_path () / "MyObject.qll" : ql .Class (name = "MyObject" , final = True , properties = [
124- ql .Property (singular = "Foo" , plural = "Foos" , type = "bar" , tablename = "my_object_foos" , params = [ index_param ],
123+ ql .Property (singular = "Foo" , plural = "Foos" , type = "bar" , tablename = "my_object_foos" ,
125124 tableparams = ["this" , "index" , "result" ]),
126125 ])
127126 }
@@ -135,7 +134,7 @@ def test_repeated_optional_property(opts, input, renderer):
135134 import_file (): ql .ImportList ([stub_import_prefix + "MyObject" ]),
136135 stub_path () / "MyObject.qll" : ql .Stub (name = "MyObject" , base_import = gen_import_prefix + "MyObject" ),
137136 ql_output_path () / "MyObject.qll" : ql .Class (name = "MyObject" , final = True , properties = [
138- ql .Property (singular = "Foo" , plural = "Foos" , type = "bar" , tablename = "my_object_foos" , params = [ index_param ],
137+ ql .Property (singular = "Foo" , plural = "Foos" , type = "bar" , tablename = "my_object_foos" ,
139138 tableparams = ["this" , "index" , "result" ], is_optional = True ),
140139 ])
141140 }
0 commit comments