Skip to content

Commit 08f30de

Browse files
committed
back to straw-clutching
1 parent d2873bd commit 08f30de

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

stream_chat/tests/test_client.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,6 @@ def test_query_users_young_hobbits(self, client, fellowship_of_the_ring):
132132
assert len(response["users"]) == 4
133133
assert [50, 38, 36, 28] == [u["age"] for u in response["users"]]
134134

135-
def test_query_channels_members_in(self, client, fellowship_of_the_ring):
136-
response = client.query_channels({"members": {"$in": ["gimli"]}}, {"id": 1})
137-
assert len(response["channels"]) == 1
138-
assert response["channels"][0]["channel"]["id"] == "fellowship-of-the-ring"
139-
assert len(response["channels"][0]["members"]) == 9
140-
141135
def test_devices(self, client, random_user):
142136
response = client.get_devices(random_user["id"])
143137
assert "devices" in response
@@ -170,3 +164,10 @@ def test_search(self, client, channel, random_user):
170164
**{"limit": 12, "offset": 0})
171165
for message in response['results']:
172166
assert query not in message['message']['text']
167+
168+
def test_query_channels_members_in(self, client, fellowship_of_the_ring):
169+
response = client.query_channels({"members": {"$in": ["gimli"]}}, {"id": 1})
170+
assert len(response["channels"]) == 1
171+
assert response["channels"][0]["channel"]["id"] == "fellowship-of-the-ring"
172+
assert len(response["channels"][0]["members"]) == 9
173+

0 commit comments

Comments
 (0)