Skip to content

Commit 1cb9e5e

Browse files
committed
Add assertion
1 parent 691b8a8 commit 1cb9e5e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

stream_chat/tests/test_client.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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())}

0 commit comments

Comments
 (0)