diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ert-helper.el | 6 | ||||
-rw-r--r-- | test/fixture/client.plstore | 2 | ||||
-rw-r--r-- | test/fixture/empty.plstore | 2 | ||||
-rw-r--r-- | test/mastodon-auth-tests.el | 4 | ||||
-rw-r--r-- | test/mastodon-client-tests.el | 1 | ||||
-rw-r--r-- | test/mastodon-http-tests.el | 2 | ||||
-rw-r--r-- | test/mastodon-tl-tests.el | 1 | ||||
-rw-r--r-- | test/mastodon-toot-tests.el | 1 |
8 files changed, 6 insertions, 13 deletions
diff --git a/test/ert-helper.el b/test/ert-helper.el new file mode 100644 index 0000000..53111d7 --- /dev/null +++ b/test/ert-helper.el @@ -0,0 +1,6 @@ +(load-file "lisp/mastodon-http.el") +(load-file "lisp/mastodon-client.el") +(load-file "lisp/mastodon-auth.el") +(load-file "lisp/mastodon-toot.el") +(load-file "lisp/mastodon-tl.el") + diff --git a/test/fixture/client.plstore b/test/fixture/client.plstore deleted file mode 100644 index 3514ed9..0000000 --- a/test/fixture/client.plstore +++ /dev/null @@ -1,2 +0,0 @@ -;;; public entries -*- mode: plstore -*- -(("mastodon" :client_id "id" :client_secret "secret")) diff --git a/test/fixture/empty.plstore b/test/fixture/empty.plstore deleted file mode 100644 index 4685e78..0000000 --- a/test/fixture/empty.plstore +++ /dev/null @@ -1,2 +0,0 @@ -;;; public entries -*- mode: plstore -*- -(("ignore" :client_id "id" :client_secret "secret")) diff --git a/test/mastodon-auth-tests.el b/test/mastodon-auth-tests.el index 1bbc46b..b3edea8 100644 --- a/test/mastodon-auth-tests.el +++ b/test/mastodon-auth-tests.el @@ -1,9 +1,5 @@ (require 'el-mock) -(load-file "../lisp/mastodon.el") -(load-file "../lisp/mastodon-http.el") -(load-file "../lisp/mastodon-auth.el") - (ert-deftest mastodon-auth:token-file () "Should return `mastodon-token-file' value." (should (string= (mastodon-auth--token-file) "~/.emacs.d/mastodon.plstore"))) diff --git a/test/mastodon-client-tests.el b/test/mastodon-client-tests.el index 2a58b84..73a3d7e 100644 --- a/test/mastodon-client-tests.el +++ b/test/mastodon-client-tests.el @@ -1,5 +1,4 @@ (require 'el-mock) -(load-file "../lisp/mastodon-client.el") (ert-deftest register () "Should POST to /apps." diff --git a/test/mastodon-http-tests.el b/test/mastodon-http-tests.el index 55f6bf3..06b92d5 100644 --- a/test/mastodon-http-tests.el +++ b/test/mastodon-http-tests.el @@ -1,7 +1,5 @@ (require 'el-mock) -(load-file "../lisp/mastodon-http.el") - (ert-deftest mastodon-http:get:retrieves-endpoint () "Should make a `url-retrieve' of the given URL." (let ((callback-double (lambda () "double"))) diff --git a/test/mastodon-tl-tests.el b/test/mastodon-tl-tests.el index 5571e70..19d7e55 100644 --- a/test/mastodon-tl-tests.el +++ b/test/mastodon-tl-tests.el @@ -1,5 +1,4 @@ (require 'el-mock) -(load-file "../lisp/mastodon-tl.el") (ert-deftest mastodon-tl:from-toot () "Should return the value for KEY in a list." diff --git a/test/mastodon-toot-tests.el b/test/mastodon-toot-tests.el index cdd3bb9..eae9e89 100644 --- a/test/mastodon-toot-tests.el +++ b/test/mastodon-toot-tests.el @@ -1,5 +1,4 @@ (require 'el-mock) -(load-file "../lisp/mastodon-toot.el") (ert-deftest mastodon-toot:cancel () (with-mock |