From 2cc711a12307b2f61d42233d0d3619ccd8f434ea Mon Sep 17 00:00:00 2001 From: Abhiseck Paira Date: Wed, 26 Jan 2022 21:18:21 +0530 Subject: test: change mastodon files loading order 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. --- test/ert-helper.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ert-helper.el') diff --git a/test/ert-helper.el b/test/ert-helper.el index a6d6692..fc4da2d 100644 --- a/test/ert-helper.el +++ b/test/ert-helper.el @@ -1,3 +1,4 @@ +(load-file "lisp/mastodon.el") (load-file "lisp/mastodon-search.el") (load-file "lisp/mastodon-async.el") (load-file "lisp/mastodon-http.el") @@ -11,4 +12,3 @@ (load-file "lisp/mastodon-search.el") (load-file "lisp/mastodon-tl.el") (load-file "lisp/mastodon-toot.el") -(load-file "lisp/mastodon.el") -- cgit v1.2.3