Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pytest-frozen-uuids

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytest-frozen-uuids

Deterministically frozen UUID's for your tests

  • 0.3.5
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc