diff --git a/tests/test_strategies.py b/tests/test_strategies.py index 29f8e1d7..a9d07bb5 100644 --- a/tests/test_strategies.py +++ b/tests/test_strategies.py @@ -72,6 +72,11 @@ def variable_boolean_strategy(draw, name=None, label=None, units=None, covariate ) +@given(variable_boolean_strategy()) +def test_variable_boolean_strategy_creation(o): + assert o + + @st.composite def variable_integer_strategy(draw, name=None, label=None, units=None, covariate=None): name, label, units, covariate = draw( @@ -113,6 +118,11 @@ def variable_integer_strategy(draw, name=None, label=None, units=None, covariate ) +@given(variable_integer_strategy()) +def test_variable_integer_strategy_creation(o): + assert o + + @st.composite def variable_real_strategy(draw, name=None, label=None, units=None, covariate=None): name, label, units, covariate = draw( @@ -148,6 +158,11 @@ def variable_real_strategy(draw, name=None, label=None, units=None, covariate=No ) +@given(variable_real_strategy()) +def test_variable_real_strategy_creation(o): + assert o + + @st.composite def variable_probability_strategy( draw, name=None, label=None, units=None, covariate=None @@ -173,6 +188,11 @@ def variable_probability_strategy( ) +@given(variable_probability_strategy()) +def test_variable_probability_strategy_creation(o): + assert o + + @st.composite def variable_probability_sample_strategy( draw, name=None, label=None, units=None, covariate=None @@ -198,6 +218,11 @@ def variable_probability_sample_strategy( ) +@given(variable_probability_sample_strategy()) +def test_variable_probability_sample_strategy_creation(o): + assert o + + @st.composite def variable_probability_distribution_strategy( draw, name=None, label=None, units=None, covariate=None @@ -223,6 +248,11 @@ def variable_probability_distribution_strategy( ) +@given(variable_probability_distribution_strategy()) +def test_variable_probability_distribution_strategy_creation(o): + assert o + + @st.composite def variable_sigmoid_strategy(draw, name=None, label=None, units=None, covariate=None): name, label, units, covariate = draw( @@ -246,6 +276,11 @@ def variable_sigmoid_strategy(draw, name=None, label=None, units=None, covariate ) +@given(variable_sigmoid_strategy()) +def test_variable_sigmoid_strategy_creation(o): + assert o + + @st.composite def variable_class_strategy(draw, name=None, label=None, units=None, covariate=None): name, label, units, covariate = draw( @@ -269,6 +304,11 @@ def variable_class_strategy(draw, name=None, label=None, units=None, covariate=N ) +@given(variable_class_strategy()) +def test_variable_class_strategy_creation(o): + assert o + + VARIABLE_STRATEGIES = ( variable_boolean_strategy, variable_integer_strategy,