| 1 |
|
| 2 |
.. _examples: |
| 3 |
|
| 4 |
Examples and customization tricks |
| 5 |
================================= |
| 6 |
|
| 7 |
Here is a (growing) list of examples. :ref:`Contact <contact>` us if you |
| 8 |
need more examples or have questions. Also take a look at the |
| 9 |
:ref:`comprehensive documentation <toc>` which contains many example |
| 10 |
snippets as well. Also, `pytest on stackoverflow.com |
| 11 |
<http://stackoverflow.com/search?q=pytest>`_ often comes with example |
| 12 |
answers. |
| 13 |
|
| 14 |
For basic examples, see |
| 15 |
|
| 16 |
- :ref:`get-started` for basic introductory examples |
| 17 |
- :ref:`assert` for basic assertion examples |
| 18 |
- :ref:`Fixtures <fixtures>` for basic fixture/setup examples |
| 19 |
- :ref:`parametrize` for basic test function parametrization |
| 20 |
- :ref:`unittest` for basic unittest integration |
| 21 |
|
| 22 |
The following examples aim at various use cases you might encounter. |
| 23 |
|
| 24 |
.. toctree:: |
| 25 |
:maxdepth: 2 |
| 26 |
|
| 27 |
reportingdemo |
| 28 |
simple |
| 29 |
parametrize |
| 30 |
markers |
| 31 |
special |
| 32 |
pythoncollection |
| 33 |
nonpython |
| 34 |
customdirectory |