Skip to content

Commit c2159c9

Browse files
committed
r/accept/reject/
1 parent 26388af commit c2159c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stream_chat/tests/test_channel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_invites(self, client, channel):
177177
channel.create("john")
178178
# accept the invite when not a member
179179
with pytest.raises(StreamAPIException):
180-
accept = channel.accept_invite("brian")
180+
channel.accept_invite("brian")
181181
# accept the invite when a member
182182
accept = channel.accept_invite("ringo")
183183
for m in accept['members']:
@@ -186,12 +186,12 @@ def test_invites(self, client, channel):
186186
assert "invite_accepted_at" in m
187187
# cannot accept again
188188
with pytest.raises(StreamAPIException):
189-
_ = channel.accept_invite("ringo")
189+
channel.accept_invite("ringo")
190190
reject = channel.reject_invite("eric")
191191
for m in reject['members']:
192192
if m['user_id'] == 'eric':
193193
assert m['invited'] is True
194194
assert "invite_rejected_at" in m
195-
# cannot accept again
195+
# cannot reject again
196196
with pytest.raises(StreamAPIException):
197197
reject = channel.reject_invite("eric")

0 commit comments

Comments
 (0)