@@ -177,9 +177,12 @@ def test_importTransformChangesClient(render, teststack):
177177 teststack , deststack , TCCjson , changeMode = 'APPEND' , render = render )
178178 renderapi .stack .set_stack_state (deststack , 'COMPLETE' , render = render )
179179 os .remove (TCCjson )
180+
181+ output_ts = renderapi .tilespec .get_tile_specs_from_stack (
182+ deststack , render = render )
183+
180184 assert all ([ts .tforms [- 1 ].to_dict () == tform_to_append .to_dict ()
181- for ts in renderapi .tilespec .get_tile_specs_from_stack (
182- deststack , render = render )])
185+ for ts in output_ts ])
183186 renderapi .stack .delete_stack (deststack , render = render )
184187
185188
@@ -188,14 +191,19 @@ def test_transformSectionClient(render, teststack,
188191 deststack = 'test_stack_TSC'
189192 transformId = 'TSC_testtransform'
190193 zvalues = renderapi .stack .get_z_values_for_stack (teststack , render = render )
191- tform = renderapi .transform .AffineModel ()
194+ tform = renderapi .transform .AffineModel (transformId = transformId )
192195
193196 renderapi .client .transformSectionClient (
194197 teststack , transformId , tform .className ,
195198 tform .dataString .replace (" " , "," ), zvalues , targetStack = deststack ,
196199 render = render )
197200 renderapi .stack .set_stack_state (deststack , 'COMPLETE' , render = render )
201+
202+ output_ts = renderapi .tilespec .get_tile_specs_from_stack (
203+ deststack , render = render )
204+ root .debug (output_ts [0 ].tforms [- 1 ].to_dict ())
205+ root .debug (output_ts [- 1 ].tforms [- 1 ].to_dict ())
206+ root .debug (tform .to_dict ())
198207 assert all ([ts .tforms [- 1 ].to_dict () == tform .to_dict ()
199- for ts in renderapi .tilespec .get_tile_specs_from_stack (
200- deststack , render = render )])
208+ for ts in output_ts ])
201209 renderapi .stack .delete_stack (deststack , render = render )
0 commit comments