aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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)