Merge pull request #4580 from tk0miya/remove_funcion_based_directive_tests

test: Remove function based directives
This commit is contained in:
Takeshi KOMIYA 2018-02-08 21:50:14 +09:00 committed by GitHub
commit c21065e278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 11 deletions

View File

@ -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')

View File

@ -3,8 +3,5 @@ Extension API tests
Testing directives:
.. funcdir::
:opt: Foo
.. clsdir::
:opt: Bar

View File

@ -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': [

View File

@ -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': [