diff options
Diffstat (limited to 'tests/test_domain_std.py')
-rw-r--r-- | tests/test_domain_std.py | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py index 1e361f172..2d31ada2e 100644 --- a/tests/test_domain_std.py +++ b/tests/test_domain_std.py @@ -5,7 +5,7 @@ Tests the std domain - :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS. + :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -36,29 +36,6 @@ def test_process_doc_handle_figure_caption(): 'testdoc', 'testid', 'caption text') -def test_process_doc_handle_image_parent_figure_caption(): - env = mock.Mock(domaindata={}) - img_node = nodes.image('', alt='image alt') - figure_node = nodes.figure( - '', - nodes.caption('caption text', 'caption text'), - img_node, - ) - document = mock.Mock( - nametypes={'testname': True}, - nameids={'testname': 'testid'}, - ids={'testid': img_node}, - ) - - domain = StandardDomain(env) - if 'testname' in domain.data['labels']: - del domain.data['labels']['testname'] - domain.process_doc(env, 'testdoc', document) - assert 'testname' in domain.data['labels'] - assert domain.data['labels']['testname'] == ( - 'testdoc', 'testid', 'caption text') - - def test_process_doc_handle_table_title(): env = mock.Mock(domaindata={}) table_node = nodes.table( |