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 | |
parent | 2648c2f6a2463b5aaeeb623751f27a5455b511a2 (diff) | |
download | mastodon.py-5f09c3814ec5cc6d82a7f9202851e6eea5d78828.tar.gz |
Fix an issue, remove a test
-rw-r--r-- | mastodon/Mastodon.py | 3 | ||||
-rw-r--r-- | tests/test_streaming.py | 10 |
2 files changed, 0 insertions, 13 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 7de4be9..5824dae 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -511,9 +511,6 @@ class Mastodon: | |||
511 | """ | 511 | """ |
512 | return Mastodon.__SUPPORTED_MASTODON_VERSION | 512 | return Mastodon.__SUPPORTED_MASTODON_VERSION |
513 | 513 | ||
514 | def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob", | ||
515 | scopes=__DEFAULT_SCOPES, force_login=False): | ||
516 | |||
517 | def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob", scopes=__DEFAULT_SCOPES, force_login=False, state=None): | 514 | def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob", scopes=__DEFAULT_SCOPES, force_login=False, state=None): |
518 | """ | 515 | """ |
519 | Returns the URL that a client needs to request an OAuth grant from the server. | 516 | Returns the URL that a client needs to request an OAuth grant from the server. |
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() |