aboutsummaryrefslogtreecommitdiff
path: root/test/mastodon-client-tests.el
Commit message (Collapse)AuthorAgeFilesLines
* change '-' to '--' in between function and namespace namesAbhiseck Paira2022-02-231-8/+8
| | | | | | | | mastodon.el currently follows the convention where all function names should have two dashes (not one dash) in between function and namespace names. Update all function names to follow this convention. See issue #205 and pull request #255
* test: add more testAbhiseck Paira2022-02-161-0/+51
| | | | | | | | | Add the following tests: * mastodon-client--current-user-active-p * mastodon-client-store-access-token * mastodon-client-make-user-active * mastodon-client-form-user-from-vars
* test: add test for mastodon-client--general-readAbhiseck Paira2022-02-161-0/+21
|
* test: merge mastodon-client--store1 and *store2Abhiseck Paira2022-02-111-14/+11
| | | | | | Merge `mastodon-client--store1' and `mastodon-client--store2' into a single test `mastodon-client--store' that test the function with the same name.
* test: update client website in mastodon-client--registerAbhiseck Paira2022-01-271-1/+1
| | | | | | | | The test `mastodon-client--register' specifies that the `mastodon-http--post' be called with a specific value. The value it specified is outdated since mastodon.el's current website has changed. So update the value with URL of the current website.
* 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