aboutsummaryrefslogtreecommitdiff
path: root/test/mastodon-auth-tests.el
Commit message (Collapse)AuthorAgeFilesLines
* Keep track of to which instance secrets in plstore belong.Holger Dürer2018-03-021-6/+9
| | | | | | | | | | | While testing out issue 149 (https://github.com/jdenen/mastodon.el/issues/149) I had problems due to stale client information being cached. With this change we store various pieces of information (the client information in the plstore and the auth tokens) in alists keyed by the instance url (and the plstore key contains the instance url as well to allow us to store data per instance).
* Clean up tests and update DOCSTRINGsJohnson Denen2017-04-231-4/+4
|
* Rewrite mastodon-authJohnson Denen2017-04-231-127/+35
| | | | | | - Remove client functions - Use mastodon-http--post - No more callback spaghetti
* Use Cask to run tests in TravisCIJohnson Denen2017-04-231-4/+0
|
* Add `mastodon-auth--client' functionJohnson Denen2017-04-121-4/+7
| | | | Replace direct references to `mastodon--client-app-plist'
* Add tests for `mastodon--access-token'Johnson Denen2017-04-121-1/+15
|
* Add mastodon--get-access-token testJohnson Denen2017-04-121-0/+16
| | | | Abstract Email and Password prompts to `mastodon-auth--user-and-passwd' function
* Abstract success lambda to its own function and testJohnson Denen2017-04-121-0/+14
| | | | | | Add `mastodon-auth--get-token-success' Add test for `mastodon-auth--get-token-success' Add test for `mastodon--get-access-token-triage'
* Add mastodon--client-app testsJohnson Denen2017-04-121-0/+21
|
* Add store-client-id-and-secret testJohnson Denen2017-04-121-0/+24
| | | | | Add `mastodon-auth--token-file' function Add test for `mastodon-auth--token-file'
* Add mastodon--register-and-return-client-app testJohnson Denen2017-04-121-14/+27
| | | | Refactor tests to check plist return value
* Add mastodon-auth--register-client-app testJohnson Denen2017-04-121-0/+19
| | | | Add mastodon-auth--register-client-app-triage test
* Add mastodon-auth--registration-success testJohnson Denen2017-04-121-0/+12