From 68ac6ddd28b46f4eead9108566c9bc4b545fa2e5 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Thu, 9 Mar 2023 01:44:44 -0600 Subject: [PATCH] Tests: Use before-each for org-ql-test-data-buffer This seems like the best way. --- tests/test-org-ql.el | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-org-ql.el b/tests/test-org-ql.el index 3750798d..f7622313 100644 --- a/tests/test-org-ql.el +++ b/tests/test-org-ql.el @@ -163,6 +163,7 @@ with keyword arg NOW in PLIST." ;; For Org 9.1.9. (substring-no-properties (org-get-heading t t t t)))) ) + (before-each (setq org-ql-test-buffer (org-ql-test-data-buffer "data.org") ;; For manual testing: ;; org-ql-test-buffer (find-file-noselect "data.org")