{"id":13421665,"url":"https://github.com/pytest-dev/pytest-flask","last_synced_at":"2026-03-17T22:04:17.398Z","repository":{"id":564576,"uuid":"23620005","full_name":"pytest-dev/pytest-flask","owner":"pytest-dev","description":"A set of pytest fixtures to test Flask applications","archived":false,"fork":false,"pushed_at":"2026-03-09T22:19:35.000Z","size":274,"stargazers_count":500,"open_issues_count":16,"forks_count":89,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-03-10T04:40:34.822Z","etag":null,"topics":["flask","pytest","pytest-flask","pytest-plugin","python","testing","unit-testing"],"latest_commit_sha":null,"homepage":"http://pytest-flask.readthedocs.org/en/latest/","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":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2014-09-03T12:51:29.000Z","updated_at":"2025-12-26T08:29:23.000Z","dependencies_parsed_at":"2026-02-10T11:01:31.220Z","dependency_job_id":null,"html_url":"https://github.com/pytest-dev/pytest-flask","commit_stats":{"total_commits":298,"total_committers":39,"mean_commits":7.641025641025641,"dds":"0.46308724832214765","last_synced_commit":"c4ddce98c3a59e1d623b6045e27d02948814a130"},"previous_names":["vitalk/pytest-flask"],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/pytest-dev/pytest-flask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytest-dev","download_url":"https://codeload.github.com/pytest-dev/pytest-flask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-flask/sbom","scorecard":{"id":752071,"data":{"date":"2025-08-11","repo":{"name":"github.com/pytest-dev/pytest-flask","commit":"561a2bb46130a42791d84a1a0e8dfcd58aeddd13"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Code-Review","score":2,"reason":"Found 2/7 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/deploy.yml:30","Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-flask/test.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:53","Warn: pipCommand not pinned by hash: .github/workflows/test.yml:54","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.3.0 not signed: https://api.github.com/repos/pytest-dev/pytest-flask/releases/126259927","Warn: release artifact 1.3.0 does not have provenance: https://api.github.com/repos/pytest-dev/pytest-flask/releases/126259927"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T20:39:06.167Z","repository_id":564576,"created_at":"2025-08-22T20:39:06.167Z","updated_at":"2025-08-22T20:39:06.167Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30633240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["flask","pytest","pytest-flask","pytest-plugin","python","testing","unit-testing"],"created_at":"2024-07-30T23:00:27.878Z","updated_at":"2026-03-17T22:04:17.348Z","avatar_url":"https://github.com/pytest-dev.png","language":"Python","readme":"pytest-flask\n============\n\n.. image:: https://img.shields.io/pypi/v/pytest-flask.svg\n    :target: https://pypi.python.org/pypi/pytest-flask\n    :alt: PyPi version\n\n.. image:: https://img.shields.io/conda/vn/conda-forge/pytest-flask.svg\n    :target: https://anaconda.org/conda-forge/pytest-flask\n    :alt: conda-forge version\n\n.. image:: https://github.com/pytest-dev/pytest-flask/workflows/build/badge.svg\n    :target: https://github.com/pytest-dev/pytest-flask/actions\n    :alt: CI status\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-flask.svg\n    :target: https://pypi.org/project/pytest-flask\n    :alt: PyPi downloads\n\n.. image:: https://readthedocs.org/projects/pytest-flask/badge/?version=latest\n   :target: https://pytest-flask.readthedocs.org/en/latest/\n   :alt: Documentation status\n\n.. image:: https://img.shields.io/maintenance/yes/2023?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask\n    :alt: Maintenance\n\n.. image:: https://img.shields.io/github/last-commit/pytest-dev/pytest-flask?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask/commits/master\n    :alt: GitHub last commit\n\n.. image:: https://img.shields.io/github/issues-pr-closed-raw/pytest-dev/pytest-flask?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask/pulls?q=is%3Apr+is%3Aclosed\n    :alt: GitHub closed pull requests\n\n.. image:: https://img.shields.io/github/issues-closed/pytest-dev/pytest-flask?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask/issues?q=is%3Aissue+is%3Aclosed\n    :alt: GitHub closed issues\n\n.. image:: https://img.shields.io/pypi/dm/pytest-flask?color=blue\n    :target: https://pypi.org/project/pytest-flask/\n    :alt: PyPI - Downloads\n\n.. image:: https://img.shields.io/github/languages/code-size/pytest-dev/pytest-flask?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask\n    :alt: Code size\n\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg?color=blue\n   :target: https://github.com/pytest-dev/pytest-flask/blob/master/LICENSE\n   :alt: License\n\n.. image:: https://img.shields.io/github/issues-raw/pytest-dev/pytest-flask.svg?color=blue\n   :target: https://github.com/pytest-dev/pytest-flask/issues\n   :alt: Issues\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n   :target: https://github.com/ambv/black\n   :alt: style\n\nAn extension of `pytest`_ test runner which\nprovides a set of useful tools to simplify testing and development\nof the Flask extensions and applications.\n\nTo view a more detailed list of extension features and examples go to\nthe `PyPI`_ overview page or\n`package documentation`_.\n\nHow to start?\n-------------\n\nConsidering the minimal flask `application factory`_ below in ``myapp.py`` as an example:\n\n.. code-block:: python\n\n   from flask import Flask\n\n   def create_app():\n      # create a minimal app\n      app = Flask(__name__)\n\n      # simple hello world view\n      @app.route('/hello')\n      def hello():\n         return 'Hello, World!'\n\n      return app\n\nYou first need to define your application fixture in ``conftest.py``:\n\n.. code-block:: python\n\n    from myapp import create_app\n\n    @pytest.fixture\n    def app():\n        app = create_app()\n        return app\n\nFinally, install the extension with dependencies and run your test suite::\n\n    $ pip install pytest-flask\n    $ pytest\n\nContributing\n------------\n\nDon’t hesitate to create a `GitHub issue`_ for any bug or\nsuggestion. For more information check our contribution `guidelines`_.\n\n.. _pytest: https://docs.pytest.org/en/stable/\n.. _PyPI: https://pypi.python.org/pypi/pytest-flask\n.. _Github issue: https://github.com/vitalk/pytest-flask/issues\n.. _package documentation: http://pytest-flask.readthedocs.org/en/latest/\n.. _guidelines: https://github.com/pytest-dev/pytest-flask/blob/master/CONTRIBUTING.rst\n.. _application factory: https://flask.palletsprojects.com/patterns/appfactories/\n","funding_links":[],"categories":["Python","Third-Party Extensions","Web Testing","Development (Debugging/Testing/Documentation)"],"sub_categories":["Developer Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest-flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-dev%2Fpytest-flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest-flask/lists"}