diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-04-29 22:11:30 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-04-29 22:11:30 +0200 |
| commit | 30ed3b90c44051b812ffa74a858019574924bd29 (patch) | |
| tree | 4adfeb1b76619e5f015af8e37f8d71c14bfe7dba /test | |
| parent | 39bea860f926a663f491b1547c271459244f073e (diff) | |
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'
Diffstat (limited to 'test')
| -rw-r--r-- | test/magit-tests.el | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/test/magit-tests.el b/test/magit-tests.el index b6b7a94..4e0027c 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 () |
