Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 7f671eb35339cf812de52087b0d93519 > files > 161

python3-pytest-2.3.5-3.fc18.noarch.rpm


.. _examples:

Usages and Examples
===========================================

Here is a (growing) list of examples. :ref:`Contact <contact>` us if you
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
- :ref:`parametrize` for basic test function parametrization
- :doc:`../unittest` for basic unittest integration
- :doc:`../nose` for basic nosetests integration

The following examples aim at various use cases you might encounter.

.. toctree::
   :maxdepth: 2

   reportingdemo.txt
   simple.txt
   parametrize.txt
   markers.txt
   special.txt
   pythoncollection.txt
   nonpython.txt