@@ -256,9 +256,9 @@ def test_autosummary_generate_content_for_module(app):
256256 config = app .config ,
257257 events = app .events ,
258258 )
259- assert template .render .extract_node ( template . render . call_args , 0 , 0 ) == 'module'
259+ assert template .render .call_args [ 0 ][ 0 ] == 'module'
260260
261- context = template .render .extract_node ( template . render . call_args , 0 , 1 )
261+ context = template .render .call_args [ 0 ][ 1 ]
262262 assert context ['members' ] == [
263263 'CONSTANT1' ,
264264 'CONSTANT2' ,
@@ -318,9 +318,9 @@ def test_autosummary_generate_content_for_module___all__(app):
318318 config = app .config ,
319319 events = app .events ,
320320 )
321- assert template .render .extract_node ( template . render . call_args , 0 , 0 ) == 'module'
321+ assert template .render .call_args [ 0 ][ 0 ] == 'module'
322322
323- context = template .render .extract_node ( template . render . call_args , 0 , 1 )
323+ context = template .render .call_args [ 0 ][ 1 ]
324324 assert context ['members' ] == [
325325 'CONSTANT1' ,
326326 'Exc' ,
@@ -369,7 +369,7 @@ def skip_member(app, what, name, obj, skip, options):
369369 config = app .config ,
370370 events = app .events ,
371371 )
372- context = template .render .extract_node ( template . render . call_args , 0 , 1 )
372+ context = template .render .call_args [ 0 ][ 1 ]
373373 assert context ['members' ] == [
374374 'CONSTANT1' ,
375375 'CONSTANT2' ,
@@ -410,9 +410,9 @@ def test_autosummary_generate_content_for_module_imported_members(app):
410410 config = app .config ,
411411 events = app .events ,
412412 )
413- assert template .render .extract_node ( template . render . call_args , 0 , 0 ) == 'module'
413+ assert template .render .call_args [ 0 ][ 0 ] == 'module'
414414
415- context = template .render .extract_node ( template . render . call_args , 0 , 1 )
415+ context = template .render .call_args [ 0 ][ 1 ]
416416 assert context ['members' ] == [
417417 'CONSTANT1' ,
418418 'CONSTANT2' ,
@@ -481,9 +481,9 @@ def test_autosummary_generate_content_for_module_imported_members_inherited_modu
481481 config = app .config ,
482482 events = app .events ,
483483 )
484- assert template .render .extract_node ( template . render . call_args , 0 , 0 ) == 'module'
484+ assert template .render .call_args [ 0 ][ 0 ] == 'module'
485485
486- context = template .render .extract_node ( template . render . call_args , 0 , 1 )
486+ context = template .render .call_args [ 0 ][ 1 ]
487487 assert context ['members' ] == [
488488 'Foo' ,
489489 'InheritedAttrClass' ,
0 commit comments