Skip to main content

logo

Downloads Downloads codecov Hits-of-Code Tests Python versions PyPI version Checked with mypy Ruff

A simple plugin for Pytest containing a fixture that can start and stop the Flask server to run related tests. You just have to define the routes.

Install it by the command:

pip install flask_fixture

Define some routes in your conftest.py file:

from flask_fixture import endpoint

@endpoint('/')
def root():
    return 'some text'

And use a URL of a server in your tests as a fixture local_server_url:

import requests

def test_server(local_server_url):
    assert requests.get(local_server_url).text == 'some text'

The example uses the Requests library.

Metadata

Release files for flask-fixture 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-fixture 0.0.7
File Size Uploaded
flask_fixture-0.0.7.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-fixture 0.0.7
File Interpreter ABI Platform
flask_fixture-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / flask_fixture-0.0.7.tar.gz

Download URL flask_fixture-0.0.7.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2e639a3fa9600cca719e858e4935638661bca3eb56dd3577bc9f974c0760d29a
BLAKE2b-256 checksum
How to use checksums
3dc2ac7231d2214a201e4823872c0f14bd3acf89067deb4ee97e25c87708396d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 9, 2025.

Transparency log

Release files / flask_fixture-0.0.7-py3-none-any.whl

Download URL flask_fixture-0.0.7-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1749f9cfb190b25dc93ebec1877eda07a92c6ddb398cb326c655628654012673
BLAKE2b-256 checksum
How to use checksums
0bb26c151f16fc93aa450ab2f5062d756d5980d28374425a4fc998d6b2f66882
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 9, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page