Skip to content

Commit

Permalink
Tests: Use before-each for org-ql-test-data-buffer
Browse files Browse the repository at this point in the history
This seems like the best way.
  • Loading branch information
alphapapa committed Mar 9, 2023
1 parent 2ae60f8 commit 68ac6dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test-org-ql.el
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 68ac6dd

Please sign in to comment.