From a29587131fad2f632078f3a5a45386bbd2904bc1 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sun, 12 Jun 2022 02:33:43 -0400 Subject: [PATCH] Configure the test slipbox and update test config --- test-slipbox/.dir-locals.el | 6 ++++++ tests.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 test-slipbox/.dir-locals.el diff --git a/test-slipbox/.dir-locals.el b/test-slipbox/.dir-locals.el new file mode 100644 index 0000000..5ae70e0 --- /dev/null +++ b/test-slipbox/.dir-locals.el @@ -0,0 +1,6 @@ +((nil . ((eval . (setq-local + org-roam-directory (expand-file-name (locate-dominating-file + default-directory ".dir-locals.el")))) + (eval . (setq-local + org-roam-db-location (expand-file-name "org-roam.db" + org-roam-directory)))))) diff --git a/tests.el b/tests.el index 9e6925d..2a369b1 100644 --- a/tests.el +++ b/tests.el @@ -15,7 +15,7 @@ (require 'org-roam-export) (setq org-roam-directory (expand-file-name "./test-slipbox") - org-roam-db-location (expand-file-name "org-roam.db")) + org-roam-db-location (expand-file-name "./test-slipbox/org-roam.db")) (org-roam-update-org-id-locations) (org-roam-db-sync)