| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| | |
Red_Starfish/mastodon-up.el:login into develop
Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/255
|
| | |
|
| |
| |
| |
| |
| | |
Test for the situation when old mastodon.el users are unaware of the
variable `mastodon-active-user'.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| |
| |
| | |
Merge `mastodon-client--store1' and `mastodon-client--store2' into a
single test `mastodon-client--store' that test the function with the
same name.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| | |
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)
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
|\ \ |
|
| |\ \ |
|
| | |/
| |/| |
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
These are completely missing so far so let's get some things added.
|
|\| | |
| |_|/
|/| | |
|
| |/
| |
| |
| |
| | |
When we corrected the time arg for `run-at-time` we forgot to update
the corresponding test which was strictly checking the time arg.
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- 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`
|
| | |
| | |
| | |
| | |
| | | |
- Remove redundant let binding of vars
- Re-indent various things to better fit reasonably on a screen.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/
| |
| |
| |
| | |
to handle adding property "type" to media, and to display in help-echo if not
an image.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|
| |
|
| |
|
|
|
|
| |
* Use the email address of the current user as default
|
| |
|