aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastodon/Mastodon.py3
-rw-r--r--tests/test_streaming.py10
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
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)