Debian Codegraph @

src/pytest.egg-info/PKG-INFO

raw
1 Metadata-Version: 2.4
2 Name: pytest
3 Version: 9.1.1
4 Summary: pytest: simple powerful testing with Python
5 Author: Brianna Laugher, Bruno Oliveira, Floris Bruynooghe, Freya Bruhin, Holger Krekel, Others (See AUTHORS), Ronny Pfannschmidt
6 License-Expression: MIT
7 Project-URL: Changelog, https://docs.pytest.org/en/stable/changelog.html
8 Project-URL: Contact, https://docs.pytest.org/en/stable/contact.html
9 Project-URL: Funding, https://docs.pytest.org/en/stable/sponsor.html
10 Project-URL: Homepage, https://docs.pytest.org/en/latest/
11 Project-URL: Source, https://github.com/pytest-dev/pytest
12 Project-URL: Tracker, https://github.com/pytest-dev/pytest/issues
13 Keywords: test,unittest
14 Classifier: Development Status :: 6 - Mature
15 Classifier: Intended Audience :: Developers
16 Classifier: Operating System :: MacOS
17 Classifier: Operating System :: Microsoft :: Windows
18 Classifier: Operating System :: POSIX
19 Classifier: Operating System :: Unix
20 Classifier: Programming Language :: Python :: 3 :: Only
21 Classifier: Programming Language :: Python :: 3.10
22 Classifier: Programming Language :: Python :: 3.11
23 Classifier: Programming Language :: Python :: 3.12
24 Classifier: Programming Language :: Python :: 3.13
25 Classifier: Programming Language :: Python :: 3.14
26 Classifier: Programming Language :: Python :: 3.15
27 Classifier: Topic :: Software Development :: Libraries
28 Classifier: Topic :: Software Development :: Testing
29 Classifier: Topic :: Utilities
30 Requires-Python: >=3.10
31 Description-Content-Type: text/x-rst
32 License-File: LICENSE
33 Requires-Dist: colorama>=0.4; sys_platform == "win32"
34 Requires-Dist: exceptiongroup>=1; python_version < "3.11"
35 Requires-Dist: iniconfig>=1.0.1
36 Requires-Dist: packaging>=22
37 Requires-Dist: pluggy<2,>=1.5
38 Requires-Dist: pygments>=2.7.2
39 Requires-Dist: tomli>=1; python_version < "3.11"
40 Provides-Extra: dev
41 Requires-Dist: argcomplete; extra == "dev"
42 Requires-Dist: attrs>=19.2; extra == "dev"
43 Requires-Dist: hypothesis>=3.56; extra == "dev"
44 Requires-Dist: mock; extra == "dev"
45 Requires-Dist: requests; extra == "dev"
46 Requires-Dist: setuptools; extra == "dev"
47 Requires-Dist: xmlschema; extra == "dev"
48 Dynamic: license-file
49
50 .. image:: https://github.com/pytest-dev/pytest/raw/main/doc/en/img/pytest_logo_curves.svg
51 :target: https://docs.pytest.org/en/stable/
52 :align: center
53 :height: 200
54 :alt: pytest
55
56
57 ------
58
59 .. image:: https://img.shields.io/pypi/v/pytest.svg
60 :target: https://pypi.org/project/pytest/
61
62 .. image:: https://img.shields.io/conda/vn/conda-forge/pytest.svg
63 :target: https://anaconda.org/conda-forge/pytest
64
65 .. image:: https://img.shields.io/pypi/pyversions/pytest.svg
66 :target: https://pypi.org/project/pytest/
67
68 .. image:: https://codecov.io/gh/pytest-dev/pytest/branch/main/graph/badge.svg
69 :target: https://codecov.io/gh/pytest-dev/pytest
70 :alt: Code coverage Status
71
72 .. image:: https://github.com/pytest-dev/pytest/actions/workflows/test.yml/badge.svg
73 :target: https://github.com/pytest-dev/pytest/actions?query=workflow%3Atest
74
75 .. image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest/main.svg
76 :target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest/main
77 :alt: pre-commit.ci status
78
79 .. image:: https://www.codetriage.com/pytest-dev/pytest/badges/users.svg
80 :target: https://www.codetriage.com/pytest-dev/pytest
81
82 .. image:: https://readthedocs.org/projects/pytest/badge/?version=latest
83 :target: https://pytest.readthedocs.io/en/latest/?badge=latest
84 :alt: Documentation Status
85
86 .. image:: https://img.shields.io/badge/Discord-pytest--dev-blue
87 :target: https://discord.com/invite/pytest-dev
88 :alt: Discord
89
90 .. image:: https://img.shields.io/badge/Libera%20chat-%23pytest-orange
91 :target: https://web.libera.chat/#pytest
92 :alt: Libera chat
93
94
95 The ``pytest`` framework makes it easy to write small tests, yet
96 scales to support complex functional testing for applications and libraries.
97
98 An example of a simple test:
99
100 .. code-block:: python
101
102 # content of test_sample.py
103 def inc(x):
104 return x + 1
105
106
107 def test_answer():
108 assert inc(3) == 5
109
110
111 To execute it::
112
113 $ pytest
114 ============================= test session starts =============================
115 collected 1 items
116
117 test_sample.py F
118
119 ================================== FAILURES ===================================
120 _________________________________ test_answer _________________________________
121
122 def test_answer():
123 > assert inc(3) == 5
124 E assert 4 == 5
125 E + where 4 = inc(3)
126
127 test_sample.py:5: AssertionError
128 ========================== 1 failed in 0.04 seconds ===========================
129
130
131 Thanks to ``pytest``'s detailed assertion introspection, you can simply use plain ``assert`` statements. See `getting-started <https://docs.pytest.org/en/stable/getting-started.html#our-first-test-run>`_ for more examples.
132
133
134 Features
135 --------
136
137 - Detailed info on failing `assert statements <https://docs.pytest.org/en/stable/how-to/assert.html>`_ (no need to remember ``self.assert*`` names)
138
139 - `Auto-discovery
140 <https://docs.pytest.org/en/stable/explanation/goodpractices.html#python-test-discovery>`_
141 of test modules and functions
142
143 - `Modular fixtures <https://docs.pytest.org/en/stable/explanation/fixtures.html>`_ for
144 managing small or parametrized long-lived test resources
145
146 - Can run `unittest <https://docs.pytest.org/en/stable/how-to/unittest.html>`_ (or trial)
147 test suites out of the box
148
149 - Python 3.10+ or PyPy3
150
151 - Rich plugin architecture, with over 1300+ `external plugins <https://docs.pytest.org/en/latest/reference/plugin_list.html>`_ and thriving community
152
153
154 Documentation
155 -------------
156
157 For full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/.
158
159
160 Bugs/Requests
161 -------------
162
163 Please use the `GitHub issue tracker <https://github.com/pytest-dev/pytest/issues>`_ to submit bugs or request features.
164
165
166 Changelog
167 ---------
168
169 Consult the `Changelog <https://docs.pytest.org/en/stable/changelog.html>`__ page for fixes and enhancements of each version.
170
171
172 Support pytest
173 --------------
174
175 `Open Collective`_ is an online funding platform for open and transparent communities.
176 It provides tools to raise money and share your finances in full transparency.
177
178 It is the platform of choice for individuals and companies that want to make one-time or
179 monthly donations directly to the project.
180
181 See more details in the `pytest collective`_.
182
183 .. _Open Collective: https://opencollective.com
184 .. _pytest collective: https://opencollective.com/pytest
185
186
187 pytest for enterprise
188 ---------------------
189
190 Available as part of the Tidelift Subscription.
191
192 The maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and
193 maintenance for the open source dependencies you use to build your applications.
194 Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.
195
196 `Learn more. <https://tidelift.com/subscription/pkg/pypi-pytest?utm_source=pypi-pytest&utm_medium=referral&utm_campaign=enterprise&utm_term=repo>`_
197
198 Security
199 ^^^^^^^^
200
201 If you have found an issue that you believe is a security vulnerability, please do not create an issue -- instead, report it via a `new security advisory <https://github.com/pytest-dev/pytest/security/advisories/new>`__.
202
203
204 License
205 -------
206
207 Copyright Holger Krekel and others, 2004.
208
209 Distributed under the terms of the `MIT`_ license, pytest is free and open source software.
210
211 .. _`MIT`: https://github.com/pytest-dev/pytest/blob/main/LICENSE