halcy / Mastodon.py

Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
MIT License
867 stars 150 forks source link

Clarify the use of 'code' in log_in() #355

Closed lasseedfast closed 5 months ago

lasseedfast commented 10 months ago

Now it's not clear that if you pass a username and password to log_in() the params['grant_type'] in authentication.py will be set to "password" and the log in attempt will throw a MastodonIllegalArgumentError because of invalid grant.

codecov[bot] commented 10 months ago

Codecov Report

Merging #355 (5c28d1b) into master (cd86887) will decrease coverage by 0.24%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #355      +/-   ##
==========================================
- Coverage   87.51%   87.27%   -0.24%     
==========================================
  Files          34       34              
  Lines        3380     3380              
==========================================
- Hits         2958     2950       -8     
- Misses        422      430       +8     
Files Changed Coverage Δ
mastodon/authentication.py 87.30% <ø> (ø)

... and 1 file with indirect coverage changes

halcy commented 5 months ago

thank you, finally merging