Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/owners-draw-hypothesis-phases.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disabled Hypothesis's explain phase for the owners' draw simulation properties while preserving shrinking.
3 changes: 2 additions & 1 deletion policyengine_us/tests/reforms/test_owners_draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import numpy as np
import pytest
from policyengine_core.parameters import Parameter, ParameterNode, ParameterScale
from hypothesis import HealthCheck, example, given, settings
from hypothesis import HealthCheck, Phase, example, given, settings
from hypothesis import strategies as st
from policyengine_core.periods import period
from policyengine_core.reforms import Reform
Expand Down Expand Up @@ -1077,6 +1077,7 @@ def generated_example(fails):
SIMULATION_SETTINGS = {
**SETTINGS,
"max_examples": 2,
"phases": [phase for phase in Phase if phase is not Phase.explain],
"suppress_health_check": [
*SETTINGS["suppress_health_check"],
HealthCheck.function_scoped_fixture,
Expand Down
Loading