diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 7de4be93..5824daed 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -511,9 +511,6 @@ def get_supported_version(): """ return Mastodon.__SUPPORTED_MASTODON_VERSION - def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob", - scopes=__DEFAULT_SCOPES, force_login=False): - 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): """ 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 a22b184a..fb60fe10 100644 --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -201,16 +201,6 @@ def test_dotted_unknown_event(): assert listener.deletes == [] assert listener.heartbeats == 0 -def test_invalid_event(): - """But not too tolerant""" - listener = Listener() - with pytest.raises(MastodonMalformedEventError): - listener.handle_stream_([ - 'event: whatup', - 'data: {"k": "v"}', - '', - ]) - def test_invalid_json(): """But not too tolerant""" listener = Listener()