+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-prompt-1.5.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-prompt-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx-prompt-1.5.0
collected 12 items
tests/test_sphinx_prompt.py FFFFFFFFFFFF [100%]
================================================================================= FAILURES =================================================================================
_ test[arguments0-options0-content0-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: " ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] _
arguments = [], options = {}, content = ['one line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: " ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f03691bb280>, name = 'prompt', arguments = [], options = {}, content = ['one line'], lineno = 0, content_offset = 0
block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments1-options1-content1-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] _
arguments = ['bash'], options = {}, content = ['one line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f0369161d30>, name = 'prompt', arguments = ['bash'], options = {}, content = ['one line'], lineno = 0, content_offset = 0
block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments2-options2-content2-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] _
arguments = [], options = {'language': 'bash'}, content = ['one line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f03690ee5b0>, name = 'prompt', arguments = [], options = {'language': 'bash'}, content = ['one line'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments3-options3-content3-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">tow</span>\n<span class="prompt1">line</span>\n</pre></div></div>] _
arguments = ['bash'], options = {}, content = ['tow', 'line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">tow</span>\n<span class="prompt1">line</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f03691611f0>, name = 'prompt', arguments = ['bash'], options = {}, content = ['tow', 'line'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments4-options4-content4-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">one split <span class="se">\\</span>\nline</span>\n</pre></div></div>] _
arguments = ['bash'], options = {}, content = ['one split \\', 'line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {...content: "$ ";\n}\n</style><span class="prompt1">one split <span class="se">\\</span>\nline</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f03690e8eb0>, name = 'prompt', arguments = ['bash'], options = {}, content = ['one split \\', 'line'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments5-options5-content5-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">mixed split <span class="se">\\</span>\nline</span>\n<span class="prompt1">second</span>\n</pre></div></div>] _
arguments = ['bash'], options = {}, content = ['mixed split \\', 'line', 'second']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {..."prompt1">mixed split <span class="se">\\</span>\nline</span>\n<span class="prompt1">second</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f03691bb670>, name = 'prompt', arguments = ['bash'], options = {}, content = ['mixed split \\', 'line', 'second']
lineno = 0, content_offset = 0, block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments6-options6-content6-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "% ";\n}\n</style><span class="prompt1">other prompt</span>\n</pre></div></div>] _
arguments = ['bash', '%'], options = {}, content = ['other prompt']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "% ";\n}\n</style><span class="prompt1">other prompt</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f036914d9a0>, name = 'prompt', arguments = ['bash', '%'], options = {}, content = ['other prompt'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments7-options7-content7-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "% ";\n}\n</style><span class="prompt1">other prompt opt</span>\n</pre></div></div>] _
arguments = [], options = {'language': 'bash', 'prompts': '%'}, content = ['other prompt opt']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "% ";\n}\n</style><span class="prompt1">other prompt opt</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f03690db1f0>, name = 'prompt', arguments = [], options = {'language': 'bash', 'prompts': '%'}
content = ['other prompt opt'], lineno = 0, content_offset = 0, block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments8-options8-content8-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "C:\\\\> ";\n}\n</style><span class="prompt1">batch</span>\n</pre></div></div>] _
arguments = ['batch'], options = {}, content = ['batch']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "C:\\\\> ";\n}\n</style><span class="prompt1">batch</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f036914d820>, name = 'prompt', arguments = ['batch'], options = {}, content = ['batch'], lineno = 0, content_offset = 0
block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments9-options9-content9-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "PS C:\\\\> ";\n}\n</style><span class="prompt1"><span class="n">powershell</span></span>\n</pre></div></div>] _
arguments = ['powershell'], options = {}, content = ['powershell']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {...content: "PS C:\\\\> ";\n}\n</style><span class="prompt1"><span class="n">powershell</span></span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f03690e8550>, name = 'prompt', arguments = ['powershell'], options = {}, content = ['powershell'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments10-options10-content10-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">lexer <span class="m">1</span> <span class="m">2</span> <span class="s2">"tree"</span></span>\n</pre></div></div>] _
arguments = ['bash'], options = {}, content = ['lexer 1 2 "tree"']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {... <span class="m">1</span> <span class="m">2</span> <span class="s2">"tree"</span></span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f036914e400>, name = 'prompt', arguments = ['bash'], options = {}, content = ['lexer 1 2 "tree"'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments11-options11-content11-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\nspan.prompt2:before {\n content: "# ";\n}\n</style><span class="prompt1">user</span>\n<span class="prompt2">root</span>\n</pre></div></div>] _
arguments = ['bash', '$,#', 'auto'], options = {}, content = ['$ user', '# root']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {...n content: "# ";\n}\n</style><span class="prompt1">user</span>\n<span class="prompt2">root</span>\n</pre></div></div>'
@pytest.mark.parametrize("arguments, options, content, expected", testdata)
def test(arguments, options, content, expected):
sphinx_prompt._cache.next_index = 1
sphinx_prompt._cache.prompts.clear()
> directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)
tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sphinx-prompt.PromptDirective object at 0x7f0369106790>, name = 'prompt', arguments = ['bash', '$,#', 'auto'], options = {}, content = ['$ user', '# root']
lineno = 0, content_offset = 0, block_text = '', state = None, state_machine = None
def __init__(self, name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
self.name = name
self.arguments = arguments
self.options = options
self.content = content
self.lineno = lineno
self.content_offset = content_offset
self.block_text = block_text
self.state = state
self.state_machine = state_machine
> self.reporter = state_machine.reporter
E AttributeError: 'NoneType' object has no attribute 'reporter'
/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
========================================================================= short test summary info ==========================================================================
FAILED tests/test_sphinx_prompt.py::test[arguments0-options0-content0-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: " ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments1-options1-content1-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments2-options2-content2-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments3-options3-content3-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">tow</span>\n<span class="prompt1">line</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments4-options4-content4-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">one split <span class="se">\\</span>\nline</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments5-options5-content5-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">mixed split <span class="se">\\</span>\nline</span>\n<span class="prompt1">second</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments6-options6-content6-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "% ";\n}\n</style><span class="prompt1">other prompt</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments7-options7-content7-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "% ";\n}\n</style><span class="prompt1">other prompt opt</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments8-options8-content8-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "C:\\\\> ";\n}\n</style><span class="prompt1">batch</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments9-options9-content9-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "PS C:\\\\> ";\n}\n</style><span class="prompt1"><span class="n">powershell</span></span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments10-options10-content10-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\n</style><span class="prompt1">lexer <span class="m">1</span> <span class="m">2</span> <span class="s2">"tree"</span></span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments11-options11-content11-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n content: "$ ";\n}\nspan.prompt2:before {\n content: "# ";\n}\n</style><span class="prompt1">user</span>\n<span class="prompt2">root</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
============================================================================ 12 failed in 0.38s ============================================================================