2010-10-11 05:45:45 +08:00
|
|
|
|
2010-10-14 07:25:09 +08:00
|
|
|
.. _examples:
|
|
|
|
|
2017-07-20 08:11:17 +08:00
|
|
|
Examples and customization tricks
|
|
|
|
=================================
|
2010-10-11 05:45:45 +08:00
|
|
|
|
2010-11-25 19:11:10 +08:00
|
|
|
Here is a (growing) list of examples. :ref:`Contact <contact>` us if you
|
2012-10-20 15:52:03 +08:00
|
|
|
need more examples or have questions. Also take a look at the
|
|
|
|
:ref:`comprehensive documentation <toc>` which contains many example
|
|
|
|
snippets as well. Also, `pytest on stackoverflow.com
|
|
|
|
<http://stackoverflow.com/search?q=pytest>`_ often comes with example
|
|
|
|
answers.
|
|
|
|
|
|
|
|
For basic examples, see
|
|
|
|
|
2021-03-12 04:30:47 +08:00
|
|
|
- :ref:`get-started` for basic introductory examples
|
2012-10-20 15:52:03 +08:00
|
|
|
- :ref:`assert` for basic assertion examples
|
2020-04-01 21:43:54 +08:00
|
|
|
- :ref:`Fixtures <fixtures>` for basic fixture/setup examples
|
2012-10-20 15:59:20 +08:00
|
|
|
- :ref:`parametrize` for basic test function parametrization
|
2021-03-12 04:30:47 +08:00
|
|
|
- :ref:`unittest` for basic unittest integration
|
|
|
|
- :ref:`noseintegration` for basic nosetests integration
|
2012-10-20 15:52:03 +08:00
|
|
|
|
|
|
|
The following examples aim at various use cases you might encounter.
|
2011-07-07 02:21:59 +08:00
|
|
|
|
2010-10-11 05:45:45 +08:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
2015-08-04 19:11:02 +08:00
|
|
|
reportingdemo
|
|
|
|
simple
|
|
|
|
parametrize
|
|
|
|
markers
|
|
|
|
special
|
|
|
|
pythoncollection
|
|
|
|
nonpython
|