Use :no-auto-options: in capsys fixtures

Otherwise they are recognized as iterators
This commit is contained in:
Bruno Oliveira 2018-02-08 20:29:04 -02:00
parent 70f93263e9
commit 623bab4447
1 changed files with 4 additions and 0 deletions

View File

@ -260,6 +260,7 @@ capsys
.. currentmodule:: _pytest.capture .. currentmodule:: _pytest.capture
.. autofunction:: capsys() .. autofunction:: capsys()
:no-auto-options:
Returns an instance of :py:class:`CaptureFixture`. Returns an instance of :py:class:`CaptureFixture`.
@ -277,6 +278,7 @@ capsysbinary
~~~~~~~~~~~~ ~~~~~~~~~~~~
.. autofunction:: capsysbinary() .. autofunction:: capsysbinary()
:no-auto-options:
Returns an instance of :py:class:`CaptureFixture`. Returns an instance of :py:class:`CaptureFixture`.
@ -294,6 +296,7 @@ capfd
~~~~~~ ~~~~~~
.. autofunction:: capfd() .. autofunction:: capfd()
:no-auto-options:
Returns an instance of :py:class:`CaptureFixture`. Returns an instance of :py:class:`CaptureFixture`.
@ -311,6 +314,7 @@ capfdbinary
~~~~~~~~~~~~ ~~~~~~~~~~~~
.. autofunction:: capfdbinary() .. autofunction:: capfdbinary()
:no-auto-options:
Returns an instance of :py:class:`CaptureFixture`. Returns an instance of :py:class:`CaptureFixture`.