2010-10-11 05:45:45 +08:00
|
|
|
|
2010-10-14 07:25:09 +08:00
|
|
|
.. _examples:
|
|
|
|
|
2010-10-14 01:30:00 +08:00
|
|
|
Usages and Examples
|
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
|
|
|
|
|
|
|
|
- :doc:`../getting-started` for basic introductory examples
|
|
|
|
- :ref:`assert` for basic assertion examples
|
|
|
|
- :ref:`fixtures` for basic fixture/setup examples
|
2012-10-20 15:59:20 +08:00
|
|
|
- :ref:`parametrize` for basic test function parametrization
|
2012-10-20 15:52:03 +08:00
|
|
|
- :doc:`../unittest` for basic unittest integration
|
|
|
|
- :doc:`../nose` for basic nosetests integration
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2010-11-25 19:11:10 +08:00
|
|
|
reportingdemo.txt
|
2010-11-21 04:35:55 +08:00
|
|
|
simple.txt
|
|
|
|
parametrize.txt
|
2011-11-12 06:56:06 +08:00
|
|
|
markers.txt
|
2012-12-16 18:28:17 +08:00
|
|
|
special.txt
|
2011-02-09 21:55:21 +08:00
|
|
|
pythoncollection.txt
|
2010-11-06 06:37:25 +08:00
|
|
|
nonpython.txt
|