1212from openfeature .provider .in_memory_provider import InMemoryProvider
1313from tests .features .data import IN_MEMORY_FLAGS
1414
15-
1615# Common step definitions
1716
1817
@@ -59,7 +58,9 @@ def step_impl_evaluated_with_details(context, flag_type, key, default_value):
5958 'a boolean flag with key "{key}" is evaluated with {eval_details} and default '
6059 'value "{default_value}"'
6160)
62- def step_impl_bool_evaluated_with_details_and_default (context , key , eval_details , default_value ):
61+ def step_impl_bool_evaluated_with_details_and_default (
62+ context , key , eval_details , default_value
63+ ):
6364 client : OpenFeatureClient = context .client
6465
6566 context .boolean_flag_details = client .get_boolean_details (key , default_value )
@@ -140,7 +141,9 @@ def step_impl_resolved_bool_should_be(context, expected_value):
140141 'the resolved boolean details value should be "{expected_value}", the variant '
141142 'should be "{variant}", and the reason should be "{reason}"'
142143)
143- def step_impl_resolved_bool_should_be_with_reason (context , expected_value , variant , reason ):
144+ def step_impl_resolved_bool_should_be_with_reason (
145+ context , expected_value , variant , reason
146+ ):
144147 assert parse_boolean (expected_value ) == context .boolean_flag_details .value
145148 assert variant == context .boolean_flag_details .variant
146149 assert reason == context .boolean_flag_details .reason
@@ -150,7 +153,9 @@ def step_impl_resolved_bool_should_be_with_reason(context, expected_value, varia
150153 'the resolved string details value should be "{expected_value}", the variant '
151154 'should be "{variant}", and the reason should be "{reason}"'
152155)
153- def step_impl_resolved_string_should_be_with_reason (context , expected_value , variant , reason ):
156+ def step_impl_resolved_string_should_be_with_reason (
157+ context , expected_value , variant , reason
158+ ):
154159 assert expected_value == context .string_flag_details .value
155160 assert variant == context .string_flag_details .variant
156161 assert reason == context .string_flag_details .reason
@@ -160,7 +165,9 @@ def step_impl_resolved_string_should_be_with_reason(context, expected_value, var
160165 'the resolved object value should be contain fields "{field1}", "{field2}", and '
161166 '"{field3}", with values "{val1}", "{val2}" and {val3}, respectively'
162167)
163- def step_impl_resolved_obj_should_contain (context , field1 , field2 , field3 , val1 , val2 , val3 ):
168+ def step_impl_resolved_obj_should_contain (
169+ context , field1 , field2 , field3 , val1 , val2 , val3
170+ ):
164171 value = context .object_flag_details .value
165172 assert field1 in value
166173 assert field2 in value
@@ -314,7 +321,7 @@ def step_impl_config_update(context, key, variant):
314321
315322@given ("sleep for {duration} milliseconds" )
316323def step_impl_sleep (context , duration ):
317- sleep (float (duration ) * .001 )
324+ sleep (float (duration ) * 0 .001 )
318325
319326
320327@then ('the resolved string details reason should be "{reason}"' )
0 commit comments