Fix an issue, remove a test

pull/260/head
halcy 2022-11-15 11:10:13 +02:00
rodzic 2648c2f6a2
commit 5f09c3814e
2 zmienionych plików z 0 dodań i 13 usunięć

Wyświetl plik

@ -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.

Wyświetl plik

@ -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()