File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,10 @@ def _extract_feature_contexts(
143143 yield context , response
144144
145145
146- TEST_CASES = _extract_test_cases (
147- MODULE_PATH / "engine-test-data/data/environment_n9fbf9h3v4fFgH3U3ngWhb.json"
146+ TEST_CASES = list (
147+ _extract_test_cases (
148+ MODULE_PATH / "engine-test-data/data/environment_n9fbf9h3v4fFgH3U3ngWhb.json"
149+ )
148150)
149151
150152
Original file line number Diff line number Diff line change 66from flag_engine .context .mappers import map_any_value_to_context_value
77from flag_engine .segments .types import ContextValue
88
9+ any_object = object ()
10+
911
1012@pytest .mark .parametrize (
1113 "value, expected_result" ,
1618 ("1.0" , 1.0 ),
1719 ("-1.2" , - 1.2 ),
1820 ("-42" , - 42 ),
21+ (any_object , str (any_object )),
1922 ],
2023)
2124def test_map_any_value_to_context_value__returns_expected (
You can’t perform that action at this time.
0 commit comments