{"id":28542729,"url":"https://github.com/pomponchik/flask_fixture","last_synced_at":"2025-07-06T07:31:44.779Z","repository":{"id":194126910,"uuid":"690095568","full_name":"pomponchik/flask_fixture","owner":"pomponchik","description":"Start and stop the flask server for your tests","archived":false,"fork":false,"pushed_at":"2025-03-09T17:40:09.000Z","size":141,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-09T21:07:22.247Z","etag":null,"topics":["fixtures","flask","pytest","pytest-plugin","server","testing"],"latest_commit_sha":null,"homepage":"","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/pomponchik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-11T14:18:16.000Z","updated_at":"2025-03-09T17:34:05.000Z","dependencies_parsed_at":"2023-12-20T14:35:28.016Z","dependency_job_id":"b828ec49-9d06-4ed4-9bab-c1645f98a279","html_url":"https://github.com/pomponchik/flask_fixture","commit_stats":{"total_commits":218,"total_committers":2,"mean_commits":109.0,"dds":0.004587155963302725,"last_synced_commit":"e13c88f7c84d0e6d7cb4658a27fc363d9ee438e8"},"previous_names":["pomponchik/flask_fixture"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pomponchik/flask_fixture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pomponchik%2Fflask_fixture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pomponchik%2Fflask_fixture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pomponchik%2Fflask_fixture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pomponchik%2Fflask_fixture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pomponchik","download_url":"https://codeload.github.com/pomponchik/flask_fixture/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pomponchik%2Fflask_fixture/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263864290,"owners_count":23521766,"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":["fixtures","flask","pytest","pytest-plugin","server","testing"],"created_at":"2025-06-09T21:07:22.036Z","updated_at":"2025-07-06T07:31:44.769Z","avatar_url":"https://github.com/pomponchik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](https://raw.githubusercontent.com/pomponchik/flask_fixture/main/docs/assets/logo_5.png)\n\n[![Downloads](https://static.pepy.tech/badge/flask_fixture/month)](https://pepy.tech/project/flask_fixture)\n[![Downloads](https://static.pepy.tech/badge/flask_fixture)](https://pepy.tech/project/flask_fixture)\n[![codecov](https://codecov.io/gh/pomponchik/flask_fixture/graph/badge.svg?token=8iyMsUaLvN)](https://codecov.io/gh/pomponchik/flask_fixture)\n[![Hits-of-Code](https://hitsofcode.com/github/pomponchik/flask_fixture?branch=main)](https://hitsofcode.com/github/pomponchik/flask_fixture/view?branch=main)\n[![Tests](https://github.com/pomponchik/flask_fixture/actions/workflows/tests_and_coverage.yml/badge.svg)](https://github.com/pomponchik/flask_fixture/actions/workflows/tests_and_coverage.yml)\n[![Python versions](https://img.shields.io/pypi/pyversions/flask_fixture.svg)](https://pypi.python.org/pypi/flask_fixture)\n[![PyPI version](https://badge.fury.io/py/flask_fixture.svg)](https://badge.fury.io/py/flask_fixture)\n[![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\n\nA simple plugin for [Pytest](https://docs.pytest.org/) containing a [fixture](https://docs.pytest.org/explanation/fixtures.html) that can start and stop the [Flask server](https://flask.palletsprojects.com/server/) to run related tests. You just have to define the [routes](https://flask.palletsprojects.com/quickstart/#routing).\n\nInstall it by the command:\n\n```bash\npip install flask_fixture\n```\n\nDefine some routes in your `conftest.py` file:\n\n```python\nfrom flask_fixture import endpoint\n\n@endpoint('/')\ndef root():\n    return 'some text'\n```\n\nAnd use a URL of a server in your tests as a fixture `local_server_url`:\n\n```python\nimport requests\n\ndef test_server(local_server_url):\n    assert requests.get(local_server_url).text == 'some text'\n```\n\nThe example uses the [Requests](https://requests.readthedocs.io/en/latest/) library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpomponchik%2Fflask_fixture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpomponchik%2Fflask_fixture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpomponchik%2Fflask_fixture/lists"}