[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 30ed3b90c4 2/6: tests: Move two tests
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 30ed3b90c4 2/6: tests: Move two tests |
Date: |
Mon, 29 Apr 2024 18:59:53 -0400 (EDT) |
branch: elpa/git-commit
commit 30ed3b90c44051b812ffa74a858019574924bd29
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
tests: Move two tests
Move them next to the related tests. These tests were added in
[1: 3098bf68f2], and while it is true that they test a function
which is also implemented using libgit2, that implementation is
not by default so putting them in a section titled "libgit" is
misleading. We are not testing the embryonic and unused libgit2
implementation.
1: 2021-04-28 3098bf68f258e088ac0d3307398d99d8c2edba41
Add tests for `magit-bare-repo-p'
---
test/magit-tests.el | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/test/magit-tests.el b/test/magit-tests.el
index b6b7a94dd3..4e0027cf34 100644
--- a/test/magit-tests.el
+++ b/test/magit-tests.el
@@ -161,6 +161,16 @@
(should (equal (magit-toplevel "wrap/subsubdir-link")
(expand-file-name "repo/"))))
+(ert-deftest magit-in-bare-repo ()
+ "Test `magit-bare-repo-p' in a bare repository."
+ (magit-with-bare-test-repository
+ (should (magit-bare-repo-p))))
+
+(ert-deftest magit-in-non-bare-repo ()
+ "Test `magit-bare-repo-p' in a non-bare repository."
+ (magit-with-test-repository
+ (should-not (magit-bare-repo-p))))
+
(defun magit-test-magit-get ()
(should (equal (magit-get-all "a.b") '("val1" "val2")))
(should (equal (magit-get "a.b") "val2"))
@@ -435,18 +445,6 @@ Recent commits\n[[:xdigit:]]\\{7,\\} master dummy\\'"
"\\`Head:[[:space:]]+master dummy\n\nRecent commits\\'"
(magit-test-visible-text))))))
-;;; libgit
-
-(ert-deftest magit-in-bare-repo ()
- "Test `magit-bare-repo-p' in a bare repository."
- (magit-with-bare-test-repository
- (should (magit-bare-repo-p))))
-
-(ert-deftest magit-in-non-bare-repo ()
- "Test `magit-bare-repo-p' in a non-bare repository."
- (magit-with-test-repository
- (should-not (magit-bare-repo-p))))
-
;;; Utils
(ert-deftest magit-utils:add-face-text-property ()
- [nongnu] elpa/git-commit updated (8b3b341d04 -> 7c794201c4), ELPA Syncer, 2024/04/29
- [nongnu] elpa/git-commit c9fd81217c 3/6: Remove support for distributing magit-libgit as a package, ELPA Syncer, 2024/04/29
- [nongnu] elpa/git-commit 75ec122569 4/6: make: Rename SEQ_MELPA_SNAPSHOT to SEQ_SNAPSHOT, ELPA Syncer, 2024/04/29
- [nongnu] elpa/git-commit a6cf90aec7 5/6: Bump dependencies, ELPA Syncer, 2024/04/29
- [nongnu] elpa/git-commit 39bea860f9 1/6: tests: Update metadata, ELPA Syncer, 2024/04/29
- [nongnu] elpa/git-commit 30ed3b90c4 2/6: tests: Move two tests,
ELPA Syncer <=
- [nongnu] elpa/git-commit 7c794201c4 6/6: Drop support for Emacs 25, ELPA Syncer, 2024/04/29