{"id":13416150,"url":"https://github.com/pytest-dev/pytest","last_synced_at":"2025-05-12T15:11:42.228Z","repository":{"id":33797025,"uuid":"37489525","full_name":"pytest-dev/pytest","owner":"pytest-dev","description":"The pytest framework makes it easy to write small tests, yet scales to support complex functional testing","archived":false,"fork":false,"pushed_at":"2025-05-04T05:41:57.000Z","size":35671,"stargazers_count":12678,"open_issues_count":911,"forks_count":2795,"subscribers_count":192,"default_branch":"main","last_synced_at":"2025-05-04T11:14:26.188Z","etag":null,"topics":["hacktoberfest","python","test","testing","unit-testing"],"latest_commit_sha":null,"homepage":"https://pytest.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pytest-dev.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"pytest-dev","tidelift":"pypi/pytest","open_collective":"pytest","thanks_dev":"u/gh/pytest-dev"}},"created_at":"2015-06-15T20:28:27.000Z","updated_at":"2025-05-04T10:26:42.000Z","dependencies_parsed_at":"2023-12-21T17:16:01.139Z","dependency_job_id":"8ed19d1e-1d25-4381-8ecf-5d865a957dba","html_url":"https://github.com/pytest-dev/pytest","commit_stats":{"total_commits":11989,"total_committers":1023,"mean_commits":"11.719452590420332","dds":0.8371006756193177,"last_synced_commit":"3ce9be96a11aad3f148c6ab11709cfa940cadea2"},"previous_names":[],"tags_count":212,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytest-dev","download_url":"https://codeload.github.com/pytest-dev/pytest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252323740,"owners_count":21729573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","python","test","testing","unit-testing"],"created_at":"2024-07-30T21:00:54.785Z","updated_at":"2025-05-04T11:14:33.952Z","avatar_url":"https://github.com/pytest-dev.png","language":"Python","readme":".. image:: https://github.com/pytest-dev/pytest/raw/main/doc/en/img/pytest_logo_curves.svg\n   :target: https://docs.pytest.org/en/stable/\n   :align: center\n   :height: 200\n   :alt: pytest\n\n\n------\n\n.. image:: https://img.shields.io/pypi/v/pytest.svg\n    :target: https://pypi.org/project/pytest/\n\n.. image:: https://img.shields.io/conda/vn/conda-forge/pytest.svg\n    :target: https://anaconda.org/conda-forge/pytest\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest.svg\n    :target: https://pypi.org/project/pytest/\n\n.. image:: https://codecov.io/gh/pytest-dev/pytest/branch/main/graph/badge.svg\n    :target: https://codecov.io/gh/pytest-dev/pytest\n    :alt: Code coverage Status\n\n.. image:: https://github.com/pytest-dev/pytest/actions/workflows/test.yml/badge.svg\n    :target: https://github.com/pytest-dev/pytest/actions?query=workflow%3Atest\n\n.. image:: https://results.pre-commit.ci/badge/github/pytest-dev/pytest/main.svg\n   :target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest/main\n   :alt: pre-commit.ci status\n\n.. image:: https://www.codetriage.com/pytest-dev/pytest/badges/users.svg\n    :target: https://www.codetriage.com/pytest-dev/pytest\n\n.. image:: https://readthedocs.org/projects/pytest/badge/?version=latest\n    :target: https://pytest.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n.. image:: https://img.shields.io/badge/Discord-pytest--dev-blue\n    :target: https://discord.com/invite/pytest-dev\n    :alt: Discord\n\n.. image:: https://img.shields.io/badge/Libera%20chat-%23pytest-orange\n    :target: https://web.libera.chat/#pytest\n    :alt: Libera chat\n\n\nThe ``pytest`` framework makes it easy to write small tests, yet\nscales to support complex functional testing for applications and libraries.\n\nAn example of a simple test:\n\n.. code-block:: python\n\n    # content of test_sample.py\n    def inc(x):\n        return x + 1\n\n\n    def test_answer():\n        assert inc(3) == 5\n\n\nTo execute it::\n\n    $ pytest\n    ============================= test session starts =============================\n    collected 1 items\n\n    test_sample.py F\n\n    ================================== FAILURES ===================================\n    _________________________________ test_answer _________________________________\n\n        def test_answer():\n    \u003e       assert inc(3) == 5\n    E       assert 4 == 5\n    E        +  where 4 = inc(3)\n\n    test_sample.py:5: AssertionError\n    ========================== 1 failed in 0.04 seconds ===========================\n\n\nDue to ``pytest``'s detailed assertion introspection, only plain ``assert`` statements are used. See `getting-started \u003chttps://docs.pytest.org/en/stable/getting-started.html#our-first-test-run\u003e`_ for more examples.\n\n\nFeatures\n--------\n\n- Detailed info on failing `assert statements \u003chttps://docs.pytest.org/en/stable/how-to/assert.html\u003e`_ (no need to remember ``self.assert*`` names)\n\n- `Auto-discovery\n  \u003chttps://docs.pytest.org/en/stable/explanation/goodpractices.html#python-test-discovery\u003e`_\n  of test modules and functions\n\n- `Modular fixtures \u003chttps://docs.pytest.org/en/stable/explanation/fixtures.html\u003e`_ for\n  managing small or parametrized long-lived test resources\n\n- Can run `unittest \u003chttps://docs.pytest.org/en/stable/how-to/unittest.html\u003e`_ (or trial)\n  test suites out of the box\n\n- Python 3.9+ or PyPy3\n\n- Rich plugin architecture, with over 1300+ `external plugins \u003chttps://docs.pytest.org/en/latest/reference/plugin_list.html\u003e`_ and thriving community\n\n\nDocumentation\n-------------\n\nFor full documentation, including installation, tutorials and PDF documents, please see https://docs.pytest.org/en/stable/.\n\n\nBugs/Requests\n-------------\n\nPlease use the `GitHub issue tracker \u003chttps://github.com/pytest-dev/pytest/issues\u003e`_ to submit bugs or request features.\n\n\nChangelog\n---------\n\nConsult the `Changelog \u003chttps://docs.pytest.org/en/stable/changelog.html\u003e`__ page for fixes and enhancements of each version.\n\n\nSupport pytest\n--------------\n\n`Open Collective`_ is an online funding platform for open and transparent communities.\nIt provides tools to raise money and share your finances in full transparency.\n\nIt is the platform of choice for individuals and companies that want to make one-time or\nmonthly donations directly to the project.\n\nSee more details in the `pytest collective`_.\n\n.. _Open Collective: https://opencollective.com\n.. _pytest collective: https://opencollective.com/pytest\n\n\npytest for enterprise\n---------------------\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of pytest and thousands of other packages are working with Tidelift to deliver commercial support and\nmaintenance for the open source dependencies you use to build your applications.\nSave time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.\n\n`Learn more. \u003chttps://tidelift.com/subscription/pkg/pypi-pytest?utm_source=pypi-pytest\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo\u003e`_\n\nSecurity\n^^^^^^^^\n\npytest has never been associated with a security vulnerability, but in any case, to report a\nsecurity vulnerability please use the `Tidelift security contact \u003chttps://tidelift.com/security\u003e`_.\nTidelift will coordinate the fix and disclosure.\n\n\nLicense\n-------\n\nCopyright Holger Krekel and others, 2004.\n\nDistributed under the terms of the `MIT`_ license, pytest is free and open source software.\n\n.. _`MIT`: https://github.com/pytest-dev/pytest/blob/main/LICENSE\n","funding_links":["https://github.com/sponsors/pytest-dev","https://tidelift.com/funding/github/pypi/pytest","https://opencollective.com/pytest","https://thanks.dev/u/gh/pytest-dev","https://opencollective.com","https://tidelift.com/subscription/pkg/pypi-pytest?utm_source=pypi-pytest\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo","https://tidelift.com/security"],"categories":["Python Packages","Python","Test Frameworks","Testing","Getting Started with the Awesome Streamlit Repository","Containers \u0026 Language Extentions \u0026 Linting","Python 程序","📦 Modules/Packages","Testing Tools","Back-End Development","Don't forget to give a :star: to make the project popular","📚 فهرست","The List of AI Testing Tools","📦 Additional Python Libraries"],"sub_categories":["Views","Python","Code quality and Tests","For Python","网络服务_其他","Testing","Misc","تست و دیباگ","14. PyTest","Miscellaneous"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-dev%2Fpytest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest/lists"}