@@ -535,6 +535,50 @@ def test_autosummary_imported_members(app, status, warning):
535
535
finally :
536
536
sys .modules .pop ('autosummary_dummy_package' , None )
537
537
538
+ @pytest .mark .sphinx ('dummy' , testroot = 'ext-autosummary-imported_members' )
539
+ def test_autosummary_imported_members_table_10058 (app , status , warning ):
540
+ try :
541
+ #app.env.config.autodoc_class_signature = 'separated'
542
+ app .build ()
543
+
544
+ doctree = app .env .get_doctree ('index' )
545
+
546
+ assert_node (doctree , (nodes .section ,))
547
+ # nodes.paragraph,
548
+ # addnodes.tabular_col_spec,
549
+ # autosummary_table,
550
+ # [autosummary_toc, addnodes.toctree]))
551
+ assert_node (doctree [0 ], (
552
+ nodes .title ,
553
+ addnodes .tabular_col_spec ,
554
+ autosummary_table ,
555
+ autosummary_toc ,
556
+ addnodes .tabular_col_spec ,
557
+ autosummary_table
558
+ ))
559
+
560
+ table = list (doctree [0 ].traverse (autosummary_table ))[1 ]
561
+
562
+ assert_node (table , [
563
+ autosummary_table ,
564
+ nodes .table ,
565
+ nodes .tgroup ,
566
+ (nodes .colspec , nodes .colspec , nodes .tbody )
567
+ ])
568
+
569
+ tbody = table .next_node (nodes .tbody )
570
+
571
+ assert_node (tbody , (
572
+ [nodes .row , (nodes .entry , nodes .entry )],
573
+ [nodes .row , (nodes .entry , nodes .entry )]
574
+ ))
575
+
576
+ assert 'foo' in tbody [0 ][0 ].next_node (nodes .Text ).astext ()
577
+ assert 'Bar' in tbody [1 ][0 ].next_node (nodes .Text ).astext ()
578
+
579
+ finally :
580
+ sys .modules .pop ('autosummary_dummy_package' , None )
581
+
538
582
539
583
@pytest .mark .sphinx (testroot = 'ext-autodoc' ,
540
584
confoverrides = {'extensions' : ['sphinx.ext.autosummary' ]})
0 commit comments