Skip to content

Commit dd76f81

Browse files
author
Rafael Marinho
committed
clean up
1 parent ffae07e commit dd76f81

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

stream_chat/tests/test_client.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,6 @@ def test_query_message_history(
10181018
assert response_next["message_history"][0]["text"] == "helloworld-2"
10191019

10201020
def test_mark_delivered(self, client: StreamChat, channel: Channel, random_user: Dict):
1021-
"""Test marking messages as delivered"""
1022-
# Test with basic delivery data using new format
10231021
delivery_data = {
10241022
"latest_delivered_messages": [
10251023
{
@@ -1033,7 +1031,6 @@ def test_mark_delivered(self, client: StreamChat, channel: Channel, random_user:
10331031
response = client.mark_delivered(delivery_data)
10341032
assert response is not None
10351033

1036-
# Test with multiple messages
10371034
delivery_data_multiple = {
10381035
"latest_delivered_messages": [
10391036
{
@@ -1052,7 +1049,6 @@ def test_mark_delivered(self, client: StreamChat, channel: Channel, random_user:
10521049
assert response is not None
10531050

10541051
def test_mark_delivered_simple(self, client: StreamChat, channel: Channel, random_user: Dict):
1055-
"""Test the convenience method for marking messages as delivered"""
10561052
response = client.mark_delivered_simple(
10571053
user_id=random_user["id"],
10581054
message_id="test-message-id",
@@ -1061,12 +1057,9 @@ def test_mark_delivered_simple(self, client: StreamChat, channel: Channel, rando
10611057
assert response is not None
10621058

10631059
def test_mark_delivered_validation(self, client: StreamChat, random_user: Dict):
1064-
"""Test validation of mark_delivered method"""
1065-
# Test empty latest_delivered_messages
10661060
with pytest.raises(ValueError, match="latest_delivered_messages must not be empty"):
10671061
client.mark_delivered({"user_id": random_user["id"]})
10681062

1069-
# Test missing user and user_id
10701063
with pytest.raises(ValueError, match="either user or user_id must be provided"):
10711064
client.mark_delivered({
10721065
"latest_delivered_messages": [{"cid": "test:channel", "id": "test"}]

0 commit comments

Comments
 (0)