aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-15 11:10:13 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-15 11:10:13 +0200
commit5f09c3814ec5cc6d82a7f9202851e6eea5d78828 (patch)
tree47ad967b6f0a746cf2ad3869e5f23c83456df9d8 /tests/test_streaming.py
parent2648c2f6a2463b5aaeeb623751f27a5455b511a2 (diff)
downloadmastodon.py-5f09c3814ec5cc6d82a7f9202851e6eea5d78828.tar.gz
Fix an issue, remove a test
Diffstat (limited to 'tests/test_streaming.py')
-rw-r--r--tests/test_streaming.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/test_streaming.py b/tests/test_streaming.py
index a22b184..fb60fe1 100644
--- a/tests/test_streaming.py
+++ b/tests/test_streaming.py
@@ -201,16 +201,6 @@ def test_dotted_unknown_event():
201 assert listener.deletes == [] 201 assert listener.deletes == []
202 assert listener.heartbeats == 0 202 assert listener.heartbeats == 0
203 203
204def test_invalid_event():
205 """But not too tolerant"""
206 listener = Listener()
207 with pytest.raises(MastodonMalformedEventError):
208 listener.handle_stream_([
209 'event: whatup',
210 'data: {"k": "v"}',
211 '',
212 ])
213
214def test_invalid_json(): 204def test_invalid_json():
215 """But not too tolerant""" 205 """But not too tolerant"""
216 listener = Listener() 206 listener = Listener()
Powered by cgit v1.2.3 (git 2.41.0)