Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pytest-netscenario

A pytest plugin for netscenario: run a network scenario as a test and assert on loss, delay and throughput.

pip install pytest-netscenario     # also installs netscenario, in exactly the same version
# test_video_call.py, next to video-call.yaml
def test_the_video_arrives_in_time(netscenario):
    video = netscenario.run("video-call.yaml")["video"]
    assert video.loss_ratio < 0.05
    assert video.delay.p99 < 0.100  # seconds

The plugin gives the fixture netscenario (a runner that finds the scenario file next to the test), the marker netscenario(...) with the fixture netscenario_result, a guard that skips (or, on a CI, fails) when the machine cannot create network namespaces, and a section in the report with the numbers of each run. It needs Linux with the tools and rights that netscenario doctor checks (permissions).

A complete example with its scenario file and its output: examples/python-test. Documentation: docs/PYTEST.md. The status is pre-alpha.

Licensed under either of Apache License 2.0 or MIT, at your option.

Metadata

Release files for pytest-netscenario 0.1.0rc2

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

Source distribution (sdist)

Source distribution for pytest-netscenario 0.1.0rc2
File Size Uploaded Provenance Actions
pytest_netscenario-0.1.0rc2.tar.gz 13.4 kB With provenance Details for pytest_netscenario-0.1.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-netscenario 0.1.0rc2
File Interpreter ABI Platform Actions
pytest_netscenario-0.1.0rc2-py3-none-any.whl Python 3 none any Details for pytest_netscenario-0.1.0rc2-py3-none-any.whl

Total release size: 26.0 kB

Release files / pytest_netscenario-0.1.0rc2.tar.gz

Download URL pytest_netscenario-0.1.0rc2.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7cb2885d429477818ef8fe468d61fd87709c5efcd6dbd15c6e3eb34912f0abd8
BLAKE2b-256 checksum
How to use checksums
869cc0d5bb508b6da6d146f883bd722fb5b80ba1743e46861b8d2dd8b013eea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 31, 2026.

Transparency log

Release files / pytest_netscenario-0.1.0rc2-py3-none-any.whl

Download URL pytest_netscenario-0.1.0rc2-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b10d60869a93bd56b888740a77e769cccb81b93eef8a7a14d6ca63b906daf936
BLAKE2b-256 checksum
How to use checksums
5b5a6af4448ae0c004108fa81439b963ffc64426ec88cb84aeda8ab8aded341c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 31, 2026.

Transparency log

Security for pytest-netscenario 0.1.0rc2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pytest_netscenario-0.1.0rc2.tar.gz

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 Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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