comment out ert tests to prevent interference on load

Tests were running every time the module was required, which could
interfere with org-roam keybindings like spc n r d t.
This commit is contained in:
Willem van den Ende
2026-07-17 20:33:07 +01:00
parent 7153a24788
commit e1d2415a8e
@@ -66,32 +66,32 @@ and then lets you review before finalizing."
(my/journelly-add-properties url heading)))
(ert-deftest test-journelly-parse-basic ()
(let* ((entry " * [2025-10-08 Wed 22:39] @ -
Paul is #XP
Do software engineering professionals still read? - survey results
https://paulgrenyer.blogspot.com/2025/10/do-software-engineering-professionals.html?m=1")
(parsed (journelly-parse-entry entry)))
(should (equal (journelly-entry-heading parsed)
" * [2025-10-08 Wed 22:39] @ -"))
(should (equal (journelly-entry-title parsed)
"Do software engineering professionals still read? - survey results"))
(should (equal (journelly-entry-url parsed)
"https://paulgrenyer.blogspot.com/2025/10/do-software-engineering-professionals.html?m=1"))
(should (equal (journelly-entry-content parsed)
"Paul is #XP"))))
;; (ert-deftest test-journelly-parse-basic ()
;; (let* ((entry " * [2025-10-08 Wed 22:39] @ -
;; Paul is #XP
;; Do software engineering professionals still read? - survey results
;; https://paulgrenyer.blogspot.com/2025/10/do-software-engineering-professionals.html?m=1")
;; (parsed (journelly-parse-entry entry)))
;; (should (equal (journelly-entry-heading parsed)
;; " * [2025-10-08 Wed 22:39] @ -"))
;; (should (equal (journelly-entry-title parsed)
;; "Do software engineering professionals still read? - survey results"))
;; (should (equal (journelly-entry-url parsed)
;; "https://paulgrenyer.blogspot.com/2025/10/do-software-engineering-professionals.html?m=1"))
;; (should (equal (journelly-entry-content parsed)
;; "Paul is #XP"))))
(ert-deftest test-journelly-parse-with-extra-text-after-url ()
(let* ((entry " * [2025-10-08 Wed 22:39] @ -
Some intro text
Article Title
https://example.com
Some notes after the URL")
(parsed (journelly-parse-entry entry)))
(should (equal (journelly-entry-title parsed) "Article Title"))
(should (equal (journelly-entry-url parsed) "https://example.com"))
(should (string-match-p "Some intro text" (journelly-entry-content parsed)))
(should (string-match-p "Some notes after the URL" (journelly-entry-content parsed)))))
;; (ert-deftest test-journelly-parse-with-extra-text-after-url ()
;; (let* ((entry " * [2025-10-08 Wed 22:39] @ -
;; Some intro text
;; Article Title
;; https://example.com
;; Some notes after the URL")
;; (parsed (journelly-parse-entry entry)))
;; (should (equal (journelly-entry-title parsed) "Article Title"))
;; (should (equal (journelly-entry-url parsed) "https://example.com"))
;; (should (string-match-p "Some intro text" (journelly-entry-content parsed)))
;; (should (string-match-p "Some notes after the URL" (journelly-entry-content parsed)))))
;; Run tests manually with: (ert "test-journelly-*")