File: README.rst

package info (click to toggle)
pytest-regressions 2.2.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 852 kB
  • sloc: python: 1,329; makefile: 33
file content (88 lines) | stat: -rw-r--r-- 2,987 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
==================
pytest-regressions
==================

.. image:: https://img.shields.io/pypi/v/pytest-regressions.svg
    :target: https://pypi.org/project/pytest-regressions
    :alt: PyPI version

.. image:: https://img.shields.io/conda/vn/conda-forge/pytest-regressions.svg
    :target: https://anaconda.org/conda-forge/pytest-regressions

.. image:: https://img.shields.io/pypi/pyversions/pytest-regressions.svg
    :target: https://pypi.org/project/pytest-regressions
    :alt: Python versions

.. image:: https://github.com/ESSS/pytest-regressions/workflows/build/badge.svg
    :target: https://github.com/ESSS/pytest-regressions/actions?query=workflow%3Abuild

.. image:: https://img.shields.io/readthedocs/pytest-regressions.svg
    :target: https://pytest-regressions.readthedocs.io/en/latest

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/ambv/black

.. image:: https://results.pre-commit.ci/badge/github/ESSS/pytest-regressions/master.svg
    :target: https://results.pre-commit.ci/latest/github/ESSS/pytest-regressions/master
    :alt: pre-commit.ci status

Fixtures to write regression tests.

Features
--------

This plugin makes it simple to test general data, images, files, and numeric tables by saving *expected*
data in a *data directory* (courtesy of `pytest-datadir <https://github.com/gabrielcnr/pytest-datadir>`_) that
can be used to verify that future runs produce the same data.

See `the docs <https://pytest-regressions.readthedocs.io/en/latest>`_ for examples and API usage.


Requirements
------------

* ``pytest>=3.5``
* Python 3.6+.


Installation
------------

You can install "pytest-regressions" via `pip`_ from `PyPI`_::

    $ pip install pytest-regressions


Contributing
------------
Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.

License
-------

Distributed under the terms of the `MIT`_ license, "pytest-regressions" is free and open source software


Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.

----

This `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template.


.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
.. _`@hackebrot`: https://github.com/hackebrot
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause
.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt
.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _`file an issue`: https://github.com/nicoddemus/pytest-regressions/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi.org/project/pip/
.. _`PyPI`: https://pypi.org/project