[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 327f53f078 069/143: Mock y-or-n-p to avoid be
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole 327f53f078 069/143: Mock y-or-n-p to avoid being prompted (#433) |
Date: |
Mon, 19 Feb 2024 15:59:03 -0500 (EST) |
branch: externals/hyperbole
commit 327f53f07821fd73bfcdccf88261f20883b795c7
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: GitHub <noreply@github.com>
Mock y-or-n-p to avoid being prompted (#433)
Skip org-fold-region dependent test when org-version is 9.6 and above
due to incompatibility with org version 9.6 to be fixed separately.
---
test/hyrolo-tests.el | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/test/hyrolo-tests.el b/test/hyrolo-tests.el
index 5a4879627b..8c1d8f57da 100644
--- a/test/hyrolo-tests.el
+++ b/test/hyrolo-tests.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <matsl@gnu.org>
;;
;; Orig-Date: 19-Jun-21 at 22:42:00
-;; Last-Mod: 5-Jan-24 at 01:51:50 by Bob Weiner
+;; Last-Mod: 6-Jan-24 at 12:42:21 by Mats Lidell
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -25,7 +25,7 @@
(require 'hy-test-helpers "test/hy-test-helpers")
(require 'hib-kbd)
(require 'kotl-mode)
-(require 'with-simulated-input)
+(require 'el-mock)
(declare-function hy-test-helpers:consume-input-events "hy-test-helpers")
(declare-function hy-test-helpers:should-last-message "hy-test-helpers")
@@ -317,9 +317,8 @@ and {b} the previous same level cell."
(should (looking-at-p "==="))
(hyrolo-outline-next-visible-heading 1)
(should (looking-at-p "* heading"))
- (let ((revisit-normally (concat "y" (if noninteractive " RET"))))
- (with-simulated-input revisit-normally
- (action-key)))
+ (mocklet ((y-or-n-p => t))
+ (action-key))
(should (equal (current-buffer) (find-buffer-visiting org-file)))
(should (looking-at-p "* heading")))
(hy-delete-file-and-buffer org-file)
@@ -629,6 +628,7 @@ Example:
(ert-deftest hyrolo-tests--outline-hide-show-heading ()
"Verify hiding and showing headings."
+ (skip-unless (version< org-version "9.6"))
(let* ((org-file (make-temp-file "hypb" nil ".org"
(hyrolo-tests--gen-outline ?* "heading" 2
"body" 2)))
(hyrolo-file-list (list org-file)))
@@ -709,9 +709,8 @@ Example:
(should (looking-at-p "^body 1$"))
;; Edit record
- (let ((revisit-normally (concat "y" (if noninteractive " RET"))))
- (with-simulated-input revisit-normally
- (should (hact 'kbd-key "e"))))
+ (mocklet ((y-or-n-p => t))
+ (should (hact 'kbd-key "e")))
(should (string= (buffer-name) (file-name-nondirectory org-file)))
(should (looking-at-p "^body 1$"))
- [elpa] externals/hyperbole c0f33ab989 095/143: hsys-org-fix-version - fix to reload Org libs from the proper path, (continued)
- [elpa] externals/hyperbole c0f33ab989 095/143: hsys-org-fix-version - fix to reload Org libs from the proper path, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole f40a30d11c 127/143: Use actionv4 (#465), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 5d27b22695 129/143: Add overview and top-level outline tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 6befc489c5 131/143: Autoload `hypb:add-to-invisibility-spec' used in kotl-mode, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole c5b276b61e 142/143: HyRolo - `hyrolo-outline-minor-mode' expands invisible text at point, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 93ff5acf4b 140/143: hyrolo.el - Add default hyrolo-entry-group-number for hyrolo-mode, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole b3a0a7d2e2 038/143: Merge remote branch 'rsw' of hyperbole into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 6c7b8e5afb 048/143: Add helper for generating org files + two tests using the matches, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 8d9b7f0dde 032/143: hyrolo-tests.el - "*HyRolo*" literal to `hyrolo-display-buffer' var, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole c2bf47c15b 068/143: xref is used by etags since 26.1 so use it unconditionally (#432), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 327f53f078 069/143: Mock y-or-n-p to avoid being prompted (#433),
ELPA Syncer <=
- [elpa] externals/hyperbole e88a3873ed 073/143: htype:def-symbol, htype:names, actype:def-symbol - Call update, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole eeb6aacd9f 075/143: Add more hyrolo show, hide and movement tests (#436), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 47d87c252f 113/143: HyRolo - resolve all outline movement issues and tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7b50db7eb0 085/143: Matsl rsw forward backward same level tests (#443), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 3d80bcbaf4 109/143: Merge branch 'rsw' of hyperbole into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1078846a45 120/143: Update generation of README.md.html for increased reliability, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 970a5573f3 133/143: Merge branch 'rsw' into matsl-rsw-add-top-view-n-overview-tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7c7aae7206 052/143: Add edit entry test, fix regular expressions, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 6009912456 128/143: Add type of but in error message, renamed but parameter, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7d485ab5ff 136/143: hbut:act-label: Add to match same func for ebuts and ibuts, ELPA Syncer, 2024/02/19