File tree 2 files changed +3
-3
lines changed
devcycle_python_sdk/models
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def create_user_from_context(
125
125
if key == "user_id" :
126
126
continue
127
127
128
- if value :
128
+ if value is not None :
129
129
if key == "email" and isinstance (value , str ):
130
130
user .email = value
131
131
elif key == "name" and isinstance (value , str ):
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ def test_create_user_from_context_with_unknown_data_fields(self):
129
129
"strValue" : "hello" ,
130
130
"intValue" : 123 ,
131
131
"floatValue" : 3.1456 ,
132
- "boolValue" : True ,
132
+ "boolValue" : False ,
133
133
},
134
134
)
135
135
user = DevCycleUser .create_user_from_context (context )
@@ -143,7 +143,7 @@ def test_create_user_from_context_with_unknown_data_fields(self):
143
143
"strValue" : "hello" ,
144
144
"intValue" : 123 ,
145
145
"floatValue" : 3.1456 ,
146
- "boolValue" : True ,
146
+ "boolValue" : False ,
147
147
},
148
148
)
149
149
self .assertEqual (user .privateCustomData , None )
You can’t perform that action at this time.
0 commit comments