diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-15 11:10:13 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-15 11:10:13 +0200 |
commit | 5f09c3814ec5cc6d82a7f9202851e6eea5d78828 (patch) | |
tree | 47ad967b6f0a746cf2ad3869e5f23c83456df9d8 /tests | |
parent | 2648c2f6a2463b5aaeeb623751f27a5455b511a2 (diff) | |
download | mastodon.py-5f09c3814ec5cc6d82a7f9202851e6eea5d78828.tar.gz |
Fix an issue, remove a test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_streaming.py | 10 |
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 | ||
204 | def 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 | |||
214 | def test_invalid_json(): | 204 | def test_invalid_json(): |
215 | """But not too tolerant""" | 205 | """But not too tolerant""" |
216 | listener = Listener() | 206 | listener = Listener() |