* Fix a test in auth-source-tests.el

* test/lisp/auth-source-tests.el
	(auth-source-test-secrets-create-secret): Redefine `read-string'
	respecting the original number of arguments.
This commit is contained in:
Andrea Corallo 2020-12-18 15:22:41 +01:00
parent ebf8963a91
commit 9676e4d776

View file

@ -320,7 +320,8 @@
;; Redefine `read-*' in order to avoid interactive input.
(cl-letf (((symbol-function 'read-passwd) (lambda (_) passwd))
((symbol-function 'read-string)
(lambda (_prompt _initial _history default) default)))
(lambda (_prompt _initial _history default _inherit-input-method)
default)))
(setq auth-info
(car (auth-source-search
:max 1 :host host :require '(:user :secret) :create t))))