File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,11 @@ def test_update(server: TSC.Server) -> None:
141141 the_custom_view = TSC .CustomViewItem ("1d0304cd-3796-429f-b815-7258370b9b74" , name = "Best test ever" )
142142 the_custom_view ._id = "1f951daf-4061-451a-9df1-69a8062664f2"
143143 the_custom_view .owner = TSC .UserItem ()
144+ assert the_custom_view .owner is not None # for mypy
144145 the_custom_view .owner .id = "dd2239f6-ddf1-4107-981a-4cf94e415794"
145146 the_custom_view = server .custom_views .update (the_custom_view )
146147
148+ assert isinstance (the_custom_view , TSC .CustomViewItem )
147149 assert "1f951daf-4061-451a-9df1-69a8062664f2" == the_custom_view .id
148150 if the_custom_view .owner :
149151 assert "dd2239f6-ddf1-4107-981a-4cf94e415794" == the_custom_view .owner .id
You can’t perform that action at this time.
0 commit comments