Tests: Use before-each for org-ql-test-data-buffer

This seems like the best way.
This commit is contained in:
Adam Porter 2023-03-09 01:44:44 -06:00
parent 2ae60f8dc5
commit 68ac6ddd28

View file

@ -163,6 +163,7 @@ with keyword arg NOW in PLIST."
;; For Org 9.1.9. ;; For Org 9.1.9.
(substring-no-properties (org-get-heading t t t t)))) ) (substring-no-properties (org-get-heading t t t t)))) )
(before-each
(setq org-ql-test-buffer (org-ql-test-data-buffer "data.org") (setq org-ql-test-buffer (org-ql-test-data-buffer "data.org")
;; For manual testing: ;; For manual testing:
;; org-ql-test-buffer (find-file-noselect "data.org") ;; org-ql-test-buffer (find-file-noselect "data.org")