summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-08 13:50:25 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-02-08 13:50:25 +0900
commita9f370bc125054d186b64cf4ccd30fddb7f104d1 (patch)
tree0e761797c7b4d72e13c6fb88ff8263c54c3e6779
parentacbf62fb6d22523c42091593b9ab64f4f61d9855 (diff)
downloadsphinx-git-a9f370bc125054d186b64cf4ccd30fddb7f104d1.tar.gz
test: Remove function based directives
-rw-r--r--tests/roots/test-root/conf.py6
-rw-r--r--tests/roots/test-root/extapi.txt3
-rw-r--r--tests/test_build_html.py1
-rw-r--r--tests/test_build_html5.py1
4 files changed, 0 insertions, 11 deletions
diff --git a/tests/roots/test-root/conf.py b/tests/roots/test-root/conf.py
index 0f5c20c8e..36a47c3bb 100644
--- a/tests/roots/test-root/conf.py
+++ b/tests/roots/test-root/conf.py
@@ -92,11 +92,6 @@ def userdesc_parse(env, sig, signode):
return x
-def functional_directive(name, arguments, options, content, lineno,
- content_offset, block_text, state, state_machine):
- return [nodes.strong(text='from function: %s' % options['opt'])]
-
-
class ClassDirective(Directive):
option_spec = {'opt': lambda x: x}
@@ -108,7 +103,6 @@ def setup(app):
import parsermod
app.add_config_value('value_from_conf_py', 42, False)
- app.add_directive('funcdir', functional_directive, opt=lambda x: x)
app.add_directive('clsdir', ClassDirective)
app.add_object_type('userdesc', 'userdescrole', '%s (userdesc)',
userdesc_parse, objname='user desc')
diff --git a/tests/roots/test-root/extapi.txt b/tests/roots/test-root/extapi.txt
index 4728e3de1..56be6d8ce 100644
--- a/tests/roots/test-root/extapi.txt
+++ b/tests/roots/test-root/extapi.txt
@@ -3,8 +3,5 @@ Extension API tests
Testing directives:
-.. funcdir::
- :opt: Foo
-
.. clsdir::
:opt: Bar
diff --git a/tests/test_build_html.py b/tests/test_build_html.py
index 184bddd94..ac52629c8 100644
--- a/tests/test_build_html.py
+++ b/tests/test_build_html.py
@@ -186,7 +186,6 @@ def test_html_warnings(app, warning):
(".//dd/p", r'Return spam\.'),
],
'extapi.html': [
- (".//strong", 'from function: Foo'),
(".//strong", 'from class: Bar'),
],
'markup.html': [
diff --git a/tests/test_build_html5.py b/tests/test_build_html5.py
index ec8885116..636fb6e91 100644
--- a/tests/test_build_html5.py
+++ b/tests/test_build_html5.py
@@ -95,7 +95,6 @@ def cached_etree_parse():
(".//dd/p", r'Return spam\.'),
],
'extapi.html': [
- (".//strong", 'from function: Foo'),
(".//strong", 'from class: Bar'),
],
'markup.html': [