aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
| * test: fix `mastodon-auth--access-token-not-found'Abhiseck Paira2022-02-251-0/+1
| |
| * test: add `mastodon-auth--user-unaware'Abhiseck Paira2022-02-251-0/+8
| | | | | | | | | | Test for the situation when old mastodon.el users are unaware of the variable `mastodon-active-user'.
| * change '-' to '--' in between function and namespace namesAbhiseck Paira2022-02-232-10/+10
| | | | | | | | | | | | | | | | 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: fix mastodon-auth--access-token-not-foundAbhiseck Paira2022-01-271-0/+2
| | | | | | | | | | | | | | Since the function `mastodon-auth--handle-token-response' now calls `mastodon-client-store-access-token' and `mastodon-client-make-user-active', define mock and stub for them respectively.
| * test: remove tests for non existent functionsAbhiseck Paira2022-01-271-41/+0
| | | | | | | | | | | | | | Remove the tests `mastodon-auth--generate-token--no-storing-credentials' and `mastodon-auth--generate-token--storing-credentials' as functions with similar names no longer exist (due to implementation of the new login mechanism)
| * 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.
| * test: change mastodon files loading orderAbhiseck Paira2022-01-271-1/+1
| | | | | | | | | | | | | | | | | | Before tests start test/ert-helper.el file is loaded which in turn loads other lisp/* files so that required functions and variables are defined during tests. Load lisp/mastodon.el file first before loading other files this solves the complain during tests that `mastodon-active-user' is not defined.
* | ert-helper: load mastodon.el before -profile so mastodon-mode-map is availmousebot2022-02-171-1/+1
| |
* | Merge branch 'mpv-play-at-point' into developmousebot2022-02-131-1/+1
|\ \
| * \ Merge branch 'develop' into mpv-play-at-pointmousebot2022-02-121-1/+4
| |\ \
| * | | fix media-link-rendering-gif testmousebot2022-02-111-1/+1
| | |/ | |/|
* | | Merge branch 'develop' of codeberg.org:martianh/mastodon.el into developmousebot2022-02-121-0/+288
|\ \ \
| * | | Add tests for mastodon-profile.Holger Dürer2022-02-121-0/+288
| | | | | | | | | | | | | | | | These are completely missing so far so let's get some things added.
* | | | Merge branch 'develop' of codeberg.org:martianh/mastodon.el into developmousebot2022-02-121-1/+1
|\| | | | |_|/ |/| |
| * | Fix the timer test that was broken with the recent timer fix.Holger Dürer2022-02-121-1/+1
| |/ | | | | | | | | When we corrected the time arg for `run-at-time` we forgot to update the corresponding test which was strictly checking the time arg.
* / fix search-get-user-info test broken by follow suggestionsmousebot2022-02-111-1/+4
|/
* making a start on pinned toot testsmousebot2021-12-201-1/+31
|
* tests for own-toot-pmousebot2021-12-201-21/+36
|
* improve delete toot testsmousebot2021-12-202-7/+9
|
* delete toot test use temp buffermousebot2021-12-201-15/+44
|
* hack attempts to test delete toot functionsmousebot2021-12-201-2/+39
|
* add block/mute calls to test do user action functionmousebot2021-12-201-2/+22
|
* test mastodon-tl--do-user-action-functionmousebot2021-12-201-1/+95
|
* test mastodon-http--triagemousebot2021-12-201-0/+75
|
* Merge branch 'develop' into notify-when-postmousebot2021-12-1610-265/+532
|\
| * Merge branch 'develop' into media-typemousebot2021-12-1610-607/+633
| |\
| | * Make the local ert runner pass.Holger Dürer2021-11-103-1/+4
| | | | | | | | | | | | | | | | | | 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-109-127/+134
| | | | | | | | | | | | | | | | | | | | | - 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-108-511/+517
| | | | | | | | | | | | | | | - Remove redundant let binding of vars - Re-indent various things to better fit reasonably on a screen.
| | * Change `mastodon-auth-test.el` to not expect errors.Holger Dürer2021-11-101-4/+16
| | | | | | | | | | | | | | | | | | | | | Instead let's catch the error and then assert the correct error text. This is more specific and also looks nicer on a test run as there are no `F` symbols for the (expected) failures.
| * | update mastodon-media:get-media-link-rendering{-gif}mousebot2021-11-091-1/+28
| |/ | | | | | | | | to handle adding property "type" to media, and to display in help-echo if not an image.
| * update test mastodon-media:get-media-link-rendering with extra propsmousebot2021-11-091-2/+10
| |
| * Reformat all code.Holger Dürer2021-11-067-390/+390
| | | | | | | | | | | | | | | | | | | | | | 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.
| * add tests for -search.elmousebot2021-11-062-0/+142
| |
| * Fix tests.Holger Dürer2021-11-016-19/+83
| | | | | | | | | | | | | | | | | | | | | | | | These needed a bit of tender love and care to get back into passing state. - Move the auth tests to the `test` directory. No idea what it was doing in `lisp`. - Image tests are mostly broken because with later Emacsen we no longer need the `imagemagic` option on create-image. - Some method signatures have changed and mocking calls needed to follow suit.
* | update mastodon-notifications--test-byline-concat for post notifymousebot2021-11-061-1/+3
|/
* fix tests to work with my changes: bylines + notifs asyncmousebot2021-08-072-30/+34
|
* Make the test less fragileJohnson Denen2019-03-041-1/+2
|
* Use the email address of the current user as default (#203)Jürgen Hötzel2019-03-041-1/+1
| | | | * Use the email address of the current user as default
* Clean up whitespaceJohnson Denen2018-08-103-8/+8
|
* Give mastodon-media--inline-images a saner interface. (#191)H Durer2018-08-101-1/+1
| | | | | | | | Instead of making it search the whole buffer every time to find images to load, give it a range where this work should be done. We then call this immediately after inserting a single status, notification, ... There should be no big noticible difference - images might load a tiny bit sooner although I doubt you can see that. This should be more efficient on large buffers although Alex didn't notice any problems when testing streamed buffers. We should still do it as it make things easier to understand. I was always worried about these global operations.
* Adjusted mastodon-tl.el to open user profiles in emacs. (#189)Alexander Griffith2018-08-101-4/+6
| | | | | | * Adjusted mastodon-tl.el to open user profiles in emacs. This also fixes an issue in user profiles where new statuses were insert at the above rather than below the user profile header.
* Make users handles tabstops (#188) Closes #166H Durer2018-08-101-10/+65
| | | | | | * User ids in the body are tab stops. * Make user handles in byline also links to profile.
* Optionally use auth-source-search for fetching and saving password. (#181)H Durer2018-08-101-15/+38
| | | | | | | | | * Use auth-source-search for fetching and saving password This gives users the ability to save their password to either the gpg-encrypted ~/.authinfo.gpg or ~/.authinfo so that they don't have to provide username/password each time * Add a new custom var to decide whether to use the auth-source package or not.
* Adds the notification timeline to mastodon.el closing #34. (#178)Alexander Griffith2018-08-102-1/+214
| | | | | | | - Can now handle notifications (follow reblog favourite and mention) - Tests for each of the rendering functions are included - Added keybinding N to mastodon.el for mastodon-notifications-get - added mastodon-notifications to ert-helper.el
* Support toggling content warning anywhere in the toot. (#180)H Durer2018-08-101-1/+20
| | | | | This new functionality is bound to the 'c' key. To help with this functionality this also changes the 'toot-json and 'toot-id properties. These are now applied to the whole toot not just the toot's byline.
* Generalizations for notifications (#174)Alexander Griffith2018-08-101-10/+33
| | | | | | | | * Added generalizations needed for adding notifications #37 - Made generalizations to toot and bylines to enable notifications. - Fixed tl tests to account for the new function arguments. - fixed whitespace