summaryrefslogtreecommitdiff
path: root/tests/test_domain_std.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-02-13 01:18:39 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-02-14 14:49:20 +0900
commit9273140ee257fd754ff036198cd506cd07fb4e4a (patch)
tree08fb543cffaaf6a6663c9e77c238ff22173c6220 /tests/test_domain_std.py
parentb07f4ccf10e2a7b9ffa5d9a0f166c6fd216c6189 (diff)
downloadsphinx-git-9273140ee257fd754ff036198cd506cd07fb4e4a.tar.gz
Override figure directive to apply :name: option to the figure itself
Diffstat (limited to 'tests/test_domain_std.py')
-rw-r--r--tests/test_domain_std.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py
index 6a6ff5315..2d31ada2e 100644
--- a/tests/test_domain_std.py
+++ b/tests/test_domain_std.py
@@ -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(