branch: elpa/git-commit commit 30ed3b90c44051b812ffa74a858019574924bd29 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@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 ()