Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 10, 2024
1 parent 19d2d33 commit 01ca0aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pytest_randomly/__init__.py
Expand Up @@ -217,9 +217,11 @@ def pytest_runtest_setup(item: Item) -> None:
if item.config.getoption("randomly_reset_seed"):
_reseed(item.config, -1)


def seed_from_string(string: str) -> int:
return int(hashlib.md5(string.encode()).hexdigest(), 16)


def pytest_runtest_call(item: Item) -> None:
if item.config.getoption("randomly_reset_seed"):
if item.config.getoption("randomly_seed_per_test"):
Expand Down

0 comments on commit 01ca0aa

Please sign in to comment.