kopia lustrzana https://github.com/halcy/Mastodon.py
Fix an issue, remove a test
rodzic
2648c2f6a2
commit
5f09c3814e
|
@ -511,9 +511,6 @@ class Mastodon:
|
||||||
"""
|
"""
|
||||||
return Mastodon.__SUPPORTED_MASTODON_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):
|
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.
|
Returns the URL that a client needs to request an OAuth grant from the server.
|
||||||
|
|
|
@ -201,16 +201,6 @@ def test_dotted_unknown_event():
|
||||||
assert listener.deletes == []
|
assert listener.deletes == []
|
||||||
assert listener.heartbeats == 0
|
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():
|
def test_invalid_json():
|
||||||
"""But not too tolerant"""
|
"""But not too tolerant"""
|
||||||
listener = Listener()
|
listener = Listener()
|
||||||
|
|
Ładowanie…
Reference in New Issue