From 6f32d5c8a32f78786a612d0105a32d6856fd87ea Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 4 Apr 2026 13:05:01 -0500 Subject: Extract test boilerplate into shared test-bootstrap.el All 50 test files that load chime.el repeated the same 8-line initialization block (package-initialize, ert, dash, alert, async, org-agenda, chime load). Replace with a single require of test-bootstrap.el. Also fix test-make-upcoming-item name collision between test-chime-make-tooltip.el and test-chime--deduplicate-events-by-title.el. --- tests/test-chime-tooltip-bugs.el | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'tests/test-chime-tooltip-bugs.el') diff --git a/tests/test-chime-tooltip-bugs.el b/tests/test-chime-tooltip-bugs.el index dce2fa5..8a11317 100644 --- a/tests/test-chime-tooltip-bugs.el +++ b/tests/test-chime-tooltip-bugs.el @@ -7,15 +7,7 @@ ;;; Code: -(when noninteractive - (package-initialize)) - -(require 'ert) -(require 'dash) -(require 'alert) -(require 'async) -(require 'org-agenda) -(load (expand-file-name "../chime.el") nil t) +(require 'test-bootstrap (expand-file-name "test-bootstrap.el")) (require 'testutil-general (expand-file-name "testutil-general.el")) (require 'testutil-time (expand-file-name "testutil-time.el")) -- cgit v1.2.3