We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b481498 commit 977a7e1Copy full SHA for 977a7e1
1 file changed
test/test_custom_view.py
@@ -141,9 +141,11 @@ def test_update(server: TSC.Server) -> None:
141
the_custom_view = TSC.CustomViewItem("1d0304cd-3796-429f-b815-7258370b9b74", name="Best test ever")
142
the_custom_view._id = "1f951daf-4061-451a-9df1-69a8062664f2"
143
the_custom_view.owner = TSC.UserItem()
144
+ assert the_custom_view.owner is not None # for mypy
145
the_custom_view.owner.id = "dd2239f6-ddf1-4107-981a-4cf94e415794"
146
the_custom_view = server.custom_views.update(the_custom_view)
147
148
+ assert isinstance(the_custom_view, TSC.CustomViewItem)
149
assert "1f951daf-4061-451a-9df1-69a8062664f2" == the_custom_view.id
150
if the_custom_view.owner:
151
assert "dd2239f6-ddf1-4107-981a-4cf94e415794" == the_custom_view.owner.id
0 commit comments