Skip to content

Commit

Permalink
Fix an issue, remove a test
Browse files Browse the repository at this point in the history
  • Loading branch information
halcy authored and halcy committed Nov 15, 2022
1 parent 2648c2f commit 5f09c38
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions mastodon/Mastodon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 0 additions & 10 deletions tests/test_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5f09c38

Please sign in to comment.