File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import typing
22
33import pytest
4- from flag_engine .result .types import FlagResult
54
65from flagsmith .models import Flag , Flags
76from flagsmith .types import SDKEvaluationResult , SDKFlagResult
@@ -140,7 +139,7 @@ def test_flag_from_evaluation_result_value_types(
140139 value : typing .Any , expected : typing .Any
141140) -> None :
142141 # Given
143- flag_result : FlagResult = {
142+ flag_result : SDKFlagResult = {
144143 "enabled" : True ,
145144 "feature_key" : "123" ,
146145 "name" : "test_feature" ,
@@ -150,7 +149,8 @@ def test_flag_from_evaluation_result_value_types(
150149 }
151150
152151 # When
153- flag : Flag = Flag .from_evaluation_result (flag_result )
152+ flag : typing . Optional [ Flag ] = Flag .from_evaluation_result (flag_result )
154153
155154 # Then
155+ assert flag
156156 assert flag .value == expected
You can’t perform that action at this time.
0 commit comments