aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* make mastodon-notifications-get a global functionmarty hiatt2022-11-211-1/+1
| | | | | | | | | so we can view notifs without first openin other masto buffers - move it to mastodon.el - autoload cookie - rename all instances - pray the keymap works
* fix toot del/pin testsmarty hiatt2022-11-211-19/+22
|
* http--post - make args + headers optional argsmarty hiatt2022-11-192-53/+53
| | | | also update all calls to it, no need for nil nil everywhere.
* -- separator for profile/tl funs in other filesmarty hiatt2022-11-182-62/+62
|
* fix make-author-buffer test: include header imgmarty hiatt2022-11-121-1/+1
|
* hack fix -toot--kill test: set mastodon-toot-previous-window-configmarty hiatt2022-11-121-4/+7
|
* fix profile--make-author-buffer test: json array list not vectormarty hiatt2022-11-121-1/+1
|
* add mock to fix author buffer test and notifs-getmarty hiatt2022-09-122-1/+6
|
* fix spoiler text and indent tl-testsmarty hiatt2022-09-122-57/+60
|
* fix http-get-retrieves testmarty hiatt2022-09-031-2/+2
|
* test profile buffer for - change time stamp for woodpeckermarty hiatt2022-08-271-2/+2
|
* update ert-helper to load all tests filesmarty hiatt2022-08-271-0/+8
|
* masto notifs tests filename correctmarty hiatt2022-08-271-1/+1
|
* Merge pull request '2FA login support' (#255) from ↵martianh2022-03-233-57/+97
|\ | | | | | | | | | | Red_Starfish/mastodon-up.el:login into develop Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/255
| * 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.