Skip to content

Commit 4448db5

Browse files
committed
fixup: no default value feature added, as testharness is broken otherwise
Signed-off-by: Simon Schrottner <[email protected]> Co-authored-by: Lea Konvalinka <[email protected]> diff --git c/providers/openfeature-provider-flagd/tests/e2e/step/context_steps.py i/providers/openfeature-provider-flagd/tests/e2e/step/context_steps.py index 3d3b502..539e71e 100644 --- c/providers/openfeature-provider-flagd/tests/e2e/step/context_steps.py +++ i/providers/openfeature-provider-flagd/tests/e2e/step/context_steps.py @@ -48,6 +48,18 @@ def update_context_without_value( +@given( + parsers.cfparse( + 'a context containing a key "{key}", with type "{type_info}" and with value ""' + ), +) +def update_context_without_value( + evaluation_context: EvaluationContext, key: str, type_info: str +): + """a context containing a key and value.""" + update_context(evaluation_context, key, type_info, "") + + @when( parsers.cfparse( 'context contains keys {fields:s} with values "{svalue}", "{svalue2}", {ivalue:d}, "{bvalue:bool}"',
1 parent 126f42f commit 4448db5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

providers/openfeature-provider-flagd/tests/e2e/step/context_steps.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ def update_context_without_value(
4848

4949

5050

51+
@given(
52+
parsers.cfparse(
53+
'a context containing a key "{key}", with type "{type_info}" and with value ""'
54+
),
55+
)
56+
def update_context_without_value(
57+
evaluation_context: EvaluationContext, key: str, type_info: str
58+
):
59+
"""a context containing a key and value."""
60+
update_context(evaluation_context, key, type_info, "")
61+
62+
5163
@when(
5264
parsers.cfparse(
5365
'context contains keys {fields:s} with values "{svalue}", "{svalue2}", {ivalue:d}, "{bvalue:bool}"',

0 commit comments

Comments
 (0)