diff options
| author | Michael Albinus | 2018-06-17 11:19:16 +0200 |
|---|---|---|
| committer | Michael Albinus | 2018-06-17 11:19:16 +0200 |
| commit | 39ccbacf9c42b2fed08c47ed7314e4c067de21b9 (patch) | |
| tree | 1aa193d33f5e31902bb3f562a44db00b87e6d564 | |
| parent | c6f992b8e30b1d7c2a53a629e1a4be0deda7fb77 (diff) | |
| download | emacs-39ccbacf9c42b2fed08c47ed7314e4c067de21b9.tar.gz emacs-39ccbacf9c42b2fed08c47ed7314e4c067de21b9.zip | |
Cleanup secrets-tests
* test/lisp/net/secrets-tests.el (secrets-test03-items)
(secrets-test04-search): Cleanup "session" collection initially.
| -rw-r--r-- | test/lisp/net/secrets-tests.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lisp/net/secrets-tests.el b/test/lisp/net/secrets-tests.el index b501fa602d0..9aa79dab0eb 100644 --- a/test/lisp/net/secrets-tests.el +++ b/test/lisp/net/secrets-tests.el | |||
| @@ -154,6 +154,9 @@ | |||
| 154 | (let (item-path) | 154 | (let (item-path) |
| 155 | (should (secrets-open-session)) | 155 | (should (secrets-open-session)) |
| 156 | 156 | ||
| 157 | ;; Cleanup. There could be items in the "session" collection. | ||
| 158 | (secrets--test-delete-all-session-items) | ||
| 159 | |||
| 157 | ;; There shall be no items in the "session" collection. | 160 | ;; There shall be no items in the "session" collection. |
| 158 | (should-not (secrets-list-items "session")) | 161 | (should-not (secrets-list-items "session")) |
| 159 | ;; There shall be items in the "Login" collection. | 162 | ;; There shall be items in the "Login" collection. |
| @@ -215,6 +218,9 @@ | |||
| 215 | (progn | 218 | (progn |
| 216 | (should (secrets-open-session)) | 219 | (should (secrets-open-session)) |
| 217 | 220 | ||
| 221 | ;; Cleanup. There could be items in the "session" collection. | ||
| 222 | (secrets--test-delete-all-session-items) | ||
| 223 | |||
| 218 | ;; There shall be no items in the "session" collection. | 224 | ;; There shall be no items in the "session" collection. |
| 219 | (should-not (secrets-list-items "session")) | 225 | (should-not (secrets-list-items "session")) |
| 220 | 226 | ||