@@ -84,7 +84,7 @@ def test_schema_create_view_delete(self):
8484 definition = definition ,
8585 description = "Basic test schema" ,
8686 )
87- schema_id = create_result [0 ].data [0 ].id
87+ schema_id = create_result [0 ].schema [0 ].id
8888 self .assertEqual (create_result [1 ], "SchemaDataReply" )
8989
9090 # View
@@ -151,7 +151,7 @@ def test_schema_update(self):
151151 description = "Before update" ,
152152 )
153153
154- schema_id = create_result [0 ].data [0 ].id
154+ schema_id = create_result [0 ].schema [0 ].id
155155 # Update description
156156 self ._df_api .schemaUpdate (
157157 schema_id ,
@@ -200,7 +200,7 @@ def test_schema_revise(self):
200200 description = "Revision 1" ,
201201 )
202202
203- schema_id = create_result [0 ].data [0 ].id
203+ schema_id = create_result [0 ].schema [0 ].id
204204 view_v1 = self ._df_api .schemaView (schema_id )
205205 ver_1 = view_v1 [0 ].schema [0 ].ver
206206
@@ -241,7 +241,7 @@ def test_schema_search(self):
241241 definition = json .dumps (self ._base_schema_def ),
242242 description = "Searchable schema number {}" .format (i ),
243243 )
244- schema_id = create_result [0 ].data [0 ].id
244+ schema_id = create_result [0 ].schema [0 ].id
245245 schemas_to_cleanup .append (schema_id )
246246
247247 # Search by ID prefix
@@ -282,7 +282,7 @@ def test_schema_public_flag(self):
282282 public = True ,
283283 )
284284
285- schema_id = create_result [0 ].data [0 ].id
285+ schema_id = create_result [0 ].schema [0 ].id
286286 view_result = self ._df_api .schemaView (schema_id )
287287 self .assertTrue (view_result [0 ].schema [0 ].pub )
288288
@@ -299,7 +299,7 @@ def test_metadata_validate_pass(self):
299299 schema_name ,
300300 definition = definition ,
301301 )
302- schema_id = create_result [0 ].data [0 ].id
302+ schema_id = create_result [0 ].schema [0 ].id
303303
304304 valid_metadata = json .dumps ({
305305 "name" : "widget" ,
@@ -323,7 +323,7 @@ def test_metadata_validate_fail(self):
323323 schema_name ,
324324 definition = definition ,
325325 )
326- schema_id = create_result [0 ].data [0 ].id
326+ schema_id = create_result [0 ].schema [0 ].id
327327
328328 # Missing required "name" field, wrong type for "value"
329329 invalid_metadata = json .dumps ({
@@ -370,7 +370,7 @@ def test_schema_create_from_file(self):
370370 definition_file = tmp_file ,
371371 description = "Created from file" ,
372372 )
373- schema_id = create_result [0 ].data [0 ].id
373+ schema_id = create_result [0 ].schema [0 ].id
374374 self .assertEqual (create_result [1 ], "SchemaDataReply" )
375375
376376 view_result = self ._df_api .schemaView (schema_id )
0 commit comments