Skip to main content

pytest-frozen-uuids

CI PyPI version

Deterministically frozen UUID's for your tests.

Features

  • Freeze UUID's globally and locally.

Installation

You can install "pytest-frozen-uuids" via pip from PyPI:

$ pip install pytest-frozen-uuids

Usage

Freeze UUID's by using the freeze_uuids fixture:

def test_freeze_uuids(freeze_uuids):
    import uuid
    assert str(uuid.uuid4()) == "00000000-0000-0000-0000-000000000000"

Or by using the freeze_uuids marker:

import pytest

@pytest.mark.freeze_uuids
def test_freeze_uuids():
    import uuid
    assert str(uuid.uuid4()) == "00000000-0000-0000-0000-000000000000"

Contributing

Contributions are very welcome. Tests can be run with tox. You can later check coverage with coverage combine && coverage html. Please try to keep coverage at least the same before you submit a pull request.

License

Distributed under the terms of the MIT license, "pytest-frozen-uuids" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This Pytest plugin was generated with Cookiecutter along with @hackebrot's Cookiecutter-pytest-plugin template.

Metadata

Release files for pytest-frozen-uuids 0.3.5

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-frozen-uuids 0.3.5
File Size Uploaded Provenance
pytest-frozen-uuids-0.3.5.tar.gz 5.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-frozen-uuids 0.3.5
File Interpreter ABI Platform
pytest_frozen_uuids-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / pytest-frozen-uuids-0.3.5.tar.gz

Download URL pytest-frozen-uuids-0.3.5.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
991e468aa0d18f0b09ad7833d0c919b15246a2156491931ccce636b3165437d6
BLAKE2b-256 checksum
How to use checksums
5943daf16de5801a507a4b8bf99dccc6b71106014d6300e7f7369da0acd2750c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pytest_frozen_uuids-0.3.5-py3-none-any.whl

Download URL pytest_frozen_uuids-0.3.5-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90f0304f789308a9ff79310559056e99421ecdce1ebd10b7f1148c3429646299
BLAKE2b-256 checksum
How to use checksums
4a4e42e5f8aa4bd0b1657660305240f06e59a681a5c759f6f832de54c8fd6f56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for pytest-frozen-uuids 0.3.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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