File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
tests/integration/work_management Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 33import sys
44
55
6- __version__ = "4.4.33dev6 "
6+ __version__ = "4.4.33dev7 "
77
88
99os .environ .update ({"sa_version" : __version__ })
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ def build_condition(**kwargs) -> Condition:
7777
7878def serialize_custom_fields (
7979 team_id : int ,
80- project_id : int ,
80+ project_id : Optional [ int ] ,
8181 service_provider : ServiceProvider ,
8282 data : List [dict ],
8383 entity : CustomFieldEntityEnum ,
@@ -610,8 +610,9 @@ def list_projects(
610610 self .service_provider .client .team_id ,
611611 None ,
612612 self .service_provider ,
613- custom_fields_list ,
614- CustomFieldEntityEnum .PROJECT ,
613+ data = custom_fields_list ,
614+ entity = CustomFieldEntityEnum .PROJECT ,
615+ parent_entity = CustomFieldEntityEnum .TEAM ,
615616 )
616617 for project , serialized_custom_fields in zip (projects , serialized_fields ):
617618 project .custom_fields = serialized_custom_fields
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ def test_list_users(self):
142142 custom_field_name = "SDK_test_date_picker" ,
143143 value = value ,
144144 )
145+ time .sleep (1 )
145146 scapegoat = sa .list_users (
146147 include = ["custom_fields" ],
147148 email = scapegoat ["email" ],
@@ -150,7 +151,6 @@ def test_list_users(self):
150151 assert scapegoat ["custom_fields" ]["SDK_test_date_picker" ] == value
151152
152153 # by date_picker with dict **filters
153- value = round (time .time (), 3 )
154154 filters = {
155155 "email" : scapegoat ["email" ],
156156 "custom_field__SDK_test_date_picker" : value ,
You can’t perform that action at this time.
0 commit comments