aboutsummaryrefslogtreecommitdiff
path: root/test/mastodon-client-tests.el
Commit message (Collapse)AuthorAgeFilesLines
* Make the local ert runner pass.Holger Dürer2021-11-101-1/+1
| | | | | | When just loading the lisp and test files one can run `M-x ert` but because things are subtly different we need to tweak a few more things to make things pass in that mode.
* Hamonize tests.Holger Dürer2021-11-101-12/+14
| | | | | | | - Add a header comment explicitly switching off lexical binding - Harmonize naming (always start with module and double hyphen) - Ensure all tests have at least a minimal doc string. - Move tests from `mastodon-auth-test.el` to `mastodon-auth-tests.el`
* Reformatting `mastodon-search-tests.el`.Holger Dürer2021-11-101-39/+39
| | | | | - Remove redundant let binding of vars - Re-indent various things to better fit reasonably on a screen.
* Reformat all code.Holger Dürer2021-11-061-32/+32
| | | | | | | | | | | Basically, in Emacs for each file: select all text and `indent-region`. - This also removes one redundant comment, and - fixes an error with json decoding where the `json-read-from-string` was actually not within the intended `unless` clause (which explains the warning about "result of (string-equal "" json-string) will be ignored" which I never understood.
* Keep track of to which instance secrets in plstore belong.Holger Dürer2018-03-021-22/+50
| | | | | | | | | | | 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).
* Remove most byte-compile warnings.Holger Dürer2017-05-181-5/+5
| | | | | | | We do this by - moving vars into the files where they are (mostly) used - "declaring" vars used elsewhere with the (defvar <var-name>) pattern, - declaring functions defined in others functions rather than loading the file via require.
* Group API endpoint function with mastodon-httpJohnson Denen2017-04-231-1/+1
|
* Use Cask to run tests in TravisCIJohnson Denen2017-04-231-1/+0
|
* Add mastodon-client featureJohnson Denen2017-04-231-0/+76