File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ def test_get_app_settings(self, client: StreamChat):
128128 assert "app" in configs
129129
130130 def test_update_app_settings (self , client : StreamChat ):
131- client .update_app_settings (
131+ response = client .update_app_settings (
132132 event_hooks = [
133133 {
134134 "hook_type" : "webhook" ,
@@ -150,8 +150,16 @@ def test_update_app_settings(self, client: StreamChat):
150150 },
151151 ]
152152 )
153+ assert "app" in response
154+ assert response .is_ok ()
155+ assert "event_hooks" in response ["app" ]
156+ assert len (response ["app" ]["event_hooks" ]) == 3
153157
154- client .update_app_settings (event_hooks = [])
158+ response = client .update_app_settings (event_hooks = [])
159+ assert "app" in response
160+ assert response .is_ok ()
161+ assert "event_hooks" in response ["app" ]
162+ assert len (response ["app" ]["event_hooks" ]) == 0
155163
156164 def test_update_user (self , client : StreamChat ):
157165 user = {"id" : str (uuid .uuid4 ())}
You can’t perform that action at this time.
0 commit comments