From 5f09c3814ec5cc6d82a7f9202851e6eea5d78828 Mon Sep 17 00:00:00 2001 From: halcy Date: Tue, 15 Nov 2022 11:10:13 +0200 Subject: Fix an issue, remove a test --- mastodon/Mastodon.py | 3 --- tests/test_streaming.py | 10 ---------- 2 files changed, 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: """ 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 a22b184..fb60fe1 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() -- cgit v1.2.3