parent
30ff723d57
commit
da1d5712cf
|
@ -106,15 +106,16 @@ Is using pytest fixtures versus xUnit setup a style question?
|
||||||
For simple applications and for people experienced with nose_ or
|
For simple applications and for people experienced with nose_ or
|
||||||
unittest-style test setup using `xUnit style setup`_ probably
|
unittest-style test setup using `xUnit style setup`_ probably
|
||||||
feels natural. For larger test suites, parametrized testing
|
feels natural. For larger test suites, parametrized testing
|
||||||
or setup of complex test resources using funcargs_ may feel more natural.
|
or setup of complex test resources using fixtures_ may feel more natural.
|
||||||
Moreover, funcargs are ideal for writing advanced test support
|
Moreover, fixtures are ideal for writing advanced test support
|
||||||
code (like e.g. the monkeypatch_, the tmpdir_ or capture_ funcargs)
|
code (like e.g. the monkeypatch_, the tmpdir_ or capture_ fixtures)
|
||||||
because the support code can register setup/teardown functions
|
because the support code can register setup/teardown functions
|
||||||
in a managed class/module/function scope.
|
in a managed class/module/function scope.
|
||||||
|
|
||||||
.. _monkeypatch: monkeypatch.html
|
.. _monkeypatch: monkeypatch.html
|
||||||
.. _tmpdir: tmpdir.html
|
.. _tmpdir: tmpdir.html
|
||||||
.. _capture: capture.html
|
.. _capture: capture.html
|
||||||
|
.. _fixtures: fixture.html
|
||||||
|
|
||||||
.. _`why pytest_pyfuncarg__ methods?`:
|
.. _`why pytest_pyfuncarg__ methods?`:
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
.. _`pytest_nose`: plugin/nose.html
|
.. _`pytest_nose`: plugin/nose.html
|
||||||
.. _`reStructured Text`: http://docutils.sourceforge.net
|
.. _`reStructured Text`: http://docutils.sourceforge.net
|
||||||
.. _`Python debugger`: http://docs.python.org/lib/module-pdb.html
|
.. _`Python debugger`: http://docs.python.org/lib/module-pdb.html
|
||||||
.. _nose: http://somethingaboutorange.com/mrl/projects/nose/
|
.. _nose: https://nose.readthedocs.org/en/latest/
|
||||||
.. _pytest: http://pypi.python.org/pypi/pytest
|
.. _pytest: http://pypi.python.org/pypi/pytest
|
||||||
.. _mercurial: http://mercurial.selenic.com/wiki/
|
.. _mercurial: http://mercurial.selenic.com/wiki/
|
||||||
.. _`setuptools`: http://pypi.python.org/pypi/setuptools
|
.. _`setuptools`: http://pypi.python.org/pypi/setuptools
|
||||||
|
|
Loading…
Reference in New Issue