From ec82bf93c1cc980d706ac3f95cf0a9d17a7f77c5 Mon Sep 17 00:00:00 2001 From: Justin ! Date: Wed, 23 Aug 2023 16:55:56 -0400 Subject: [PATCH] Fix `HealthCheck.all()` deprecation warnings --- tests/conftest.py | 2 +- tests/unit/test_repair.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 2cc19be6..9300ec3c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -42,7 +42,7 @@ def benchmark(): "deterministic", settings( derandomize=True, - suppress_health_check=HealthCheck.all(), + suppress_health_check=list(HealthCheck), ), ) settings.register_profile("dev", settings(suppress_health_check=[HealthCheck.too_slow])) diff --git a/tests/unit/test_repair.py b/tests/unit/test_repair.py index 3a153bca..cb3e38d3 100644 --- a/tests/unit/test_repair.py +++ b/tests/unit/test_repair.py @@ -15,7 +15,7 @@ @given(uid=uid_strategy) # Using the random module for UIDs: -@settings(suppress_health_check=HealthCheck.all()) +@settings(suppress_health_check=list(HealthCheck)) @pytest.mark.asyncio async def test_repair_uids(uid): s = MemoryStorage() @@ -38,7 +38,7 @@ async def test_repair_uids(uid): @given(uid=uid_strategy.filter(lambda x: not href_safe(x))) # Using the random module for UIDs: -@settings(suppress_health_check=HealthCheck.all()) +@settings(suppress_health_check=list(HealthCheck)) @pytest.mark.asyncio async def test_repair_unsafe_uids(uid): s = MemoryStorage()