From b968114b66f0023b5aeba5ea116a127449978eae Mon Sep 17 00:00:00 2001 From: Valerie Lambert Date: Thu, 10 Nov 2022 14:53:49 -0800 Subject: [PATCH 1/3] chore:Pin importlib-metadata to version before 5.0 --- dev_requirements/test-requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/dev_requirements/test-requirements.txt b/dev_requirements/test-requirements.txt index 83d215f3..5112670b 100644 --- a/dev_requirements/test-requirements.txt +++ b/dev_requirements/test-requirements.txt @@ -1,4 +1,5 @@ hypothesis==5.49.0 +importlib-metadata==4.8.3 mock==4.0.3 moto==3.0.2 pytest==7.0.0 From 4628b28b94be14b946fbd842bccfb26942b5540d Mon Sep 17 00:00:00 2001 From: Valerie Lambert Date: Thu, 10 Nov 2022 15:15:44 -0800 Subject: [PATCH 2/3] Upgrade hypothesis instead --- dev_requirements/test-requirements.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev_requirements/test-requirements.txt b/dev_requirements/test-requirements.txt index 5112670b..8b8d9d2d 100644 --- a/dev_requirements/test-requirements.txt +++ b/dev_requirements/test-requirements.txt @@ -1,5 +1,4 @@ -hypothesis==5.49.0 -importlib-metadata==4.8.3 +hypothesis==6.56.4 mock==4.0.3 moto==3.0.2 pytest==7.0.0 From 7dd6a3508be9539b9cc4146119f12fd7394e31aa Mon Sep 17 00:00:00 2001 From: Valerie Lambert Date: Fri, 11 Nov 2022 15:51:53 -0800 Subject: [PATCH 3/3] Suppress hypothesis fixtures check --- dev_requirements/test-requirements.txt | 2 +- test/functional/hypothesis_strategies.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dev_requirements/test-requirements.txt b/dev_requirements/test-requirements.txt index 8b8d9d2d..4396c348 100644 --- a/dev_requirements/test-requirements.txt +++ b/dev_requirements/test-requirements.txt @@ -1,4 +1,4 @@ -hypothesis==6.56.4 +hypothesis==6.31.6 mock==4.0.3 moto==3.0.2 pytest==7.0.0 diff --git a/test/functional/hypothesis_strategies.py b/test/functional/hypothesis_strategies.py index 6a39d4cf..059e14b6 100644 --- a/test/functional/hypothesis_strategies.py +++ b/test/functional/hypothesis_strategies.py @@ -23,6 +23,10 @@ hypothesis.HealthCheck.too_slow, hypothesis.HealthCheck.data_too_large, hypothesis.HealthCheck.large_base_example, + # Hypothesis requires that we acknowledge that the example_table fixure + # is not reset between examples generated by hypothesis.given. + # This is the desired behavior for example_table, so supress this check + hypothesis.HealthCheck.function_scoped_fixture, ), deadline=None, )