From a9f370bc125054d186b64cf4ccd30fddb7f104d1 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Thu, 8 Feb 2018 13:50:25 +0900 Subject: [PATCH] test: Remove function based directives --- tests/roots/test-root/conf.py | 6 ------ tests/roots/test-root/extapi.txt | 3 --- tests/test_build_html.py | 1 - tests/test_build_html5.py | 1 - 4 files changed, 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': [